[code] /* - function trim_array() - * * A function for quicly triming all variables in an array *... Read More »
[code] /* - function pre_dump() - * * A function for quicly echo'ing "<pre> </pre>" * around a var_dump of a variable... Read More »
[code] /* * A class for simply connect and do a query on a database * */ ... Read More »
[code] <?php# Snippet to include template files from file system# USAGE: [[includeTemplate? &tpl=`mytemplate/template.html`]] ... Read More »
[code] <?php echo $_product->getResource()->getAttribute('attribute name'... Read More »
[code] function move_form_element(&$form, $name, $new_category, $weight = NULL)... Read More »
[code] function my_body_class( $class = '' ) { // Separates classes with a single space, collates classes for body element... Read More »
[code] $totalposts = get_category_by_slug("mycategoryname")->category_count; [/code]... Read More »
[code] <?php$str = preg_replace('/\s\s /', ' ', $str... Read More »
[code] function compare ($a, $b) { //return strcmp($a["fruit"], $b["fruit"]); // in the case of ... Read More »