= 0 ? (int)$times : 1; return str_replace('$', str_repeat('\\', $times).'$', (string)$string); } /** * Evaluates PHP code, and 'returns' output. * * @package s2Member\Utilities * @since 110917 * * @param string $code A string of data, possibly with embedded PHP code. * * @return string Output after PHP evaluation. */ public static function evl($code = '') { ob_start(); // Output buffer. eval ('?>'.trim($code)); return ob_get_clean(); } } }