PHP Code Snippets

collizo4sky

Convert plaintext URI, www, FTP and email addresses to HTML links.

Read more

David Carr

usage echo format('07477761819'); //447477761819

Read more

David Carr

this function expects 2 values from that a percentage is created.

Read more

collizo4sky

A function that shuffles an associative array with the index key intact unlike built-in PHP shuffle() that discards the array key.

Read more

brainyprb

These htaccess rules remove extension from php files while viewing in browser plus user is redirected to non extension URL if s/he tries to open URL with extension.

Read more

collizo4sky

Remove all non printable characters from a string

Read more

David Carr

Post updates to buffer using this library - https://github.com/thewebguy/bufferapp-php details documentation about the api is available from https://buffer.com/developers/api

Read more

David Carr

converts plain text urls into HTML links, second argument will be used as the url label <a href=''>$custom</a>

Read more

Copyright © 2011 - 2018 created by David Carr Web Developer. All code MIT license. All rights reserved. Built using Simple MVC Framework