Marcus schreef:
Hi!


Is there any way to get the following snippet returning a true?


...
$this->var = ?????

$this->var = $preDefinedStringToTestWith;

echo $preDefinedStringToTestWith;

if ($this->var == $preDefinedStringToTestWith)
    return true;
else
    false;

what are you trying to do exactly? show us the code.


The problem:
I don't know, what $preDefinedStringToTestWith is!
$this->var can be set to any string.

I tried
$this->var = "${preDefinedStringToTestWith}"
but this doesn't get expanded.


Thanks for your help,

Marcus.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to