1 2 3 4
<?php foreach($final as $key => $val) { if (is_array($val) && count($val) == 1) $final[$key] = $val[0]; ...
PHP convert single itemed sub-a...
by paulswansea.myopenid.com,
August 25, 2010 20:45,
No refactoring, tagged with php, multidimensional-array, 2d array
1
$outputstr = preg_replace('/[-]{2,}/','-',trim(strtolower(str_replace(' ','-',preg_replace('/[^A-Z0-9- ]+/i','',$inputstr))),'-'));
PHP Trimming excess from string
by paulswansea.myopenid.com,
February 05, 2010 16:07,
4 refactorings, tagged with php, regex, replace
I'm trying to get an input ...
I tried using array_walk to...