11-18-2010, 08:10 PM
|
#52 (permalink)
|
|
The Contributor
Join Date: Jan 2009
Posts: 48
Thanks: 5
|
How about vprintf? Using a preg_match single line if to determine the string value? And utilizing a class?
So do I win lol?
Heh, the object being called at the end is Talk-> PHP($output);
PHP Code:
<?php class Talk { var $output = '';
function PHP($str) { vprintf('%s', $str); } }
$TalkPHP = 'Totally Awesome!!!!'; $output = (preg_match('*Awesome*', $TalkPHP)) ? 'TalkPHP is Totally Awesome!' : '';
$Talk = new Talk(); $Talk->PHP($output); unset($Talk); ?>
|
|
|
|