Day: January 11, 2013

PHP Functions

How to Split an Array into a String with PHP

$myArray = explode(‘,’, $myString);

Read more
PHP Functions

PHP Code for Replacing Characters in a String or Variable

str_replace(‘”‘, “”, $string); preg_replace(“//”, “”, $string); C-style quotes: preg_replace(“/\/\/.*?\n/”, “\n”, $string); CSS-style quotes: preg_replace(“/\/*.*?\*\//”, “”, $string); bash-style quotes: preg-replace(“/#.*?\n/”, “\n”, $string);

Read more
PHP Functions

Split PHP String into Multiple Variables Made Easy

Like a Glove….

Read more