RE: [PHP] Ridiculous ..won't print or echo ...

2009-07-29 Thread Aipok
>Ok in my output to Quark I need to have $P printed to the page like this:
>
><@$p>2118 S. Campbell Ave
>
>So in my php which is going to be grabbing this info and formatting it for
>the Quarkisn't echoing that "$p" all I get is the <@>
>
>I have tried several things:
>
>$p = $p
>
>$p = print("$p")
>
>$p = echo "$p"
>
>On and on...
>
>tried all kinds of ways to just get a $p to print to the page.and I can
>not for some reason get a $p to print to the page...what's up with that...
>

Try with $p = '$p' to store the string $p inside the $p variable. Or, use
"echo '$p'" (without the double quotes). $p = echo "$p" makes no sense, as
the echo function doesn't return anything, and you're trying to store the
returning result (none) into the variable $p.


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



RE: [PHP] Re: unset() something that doesn't exist

2009-08-25 Thread Aipok
The function is described as "void unset  ( mixed $var  [, mixed $var  [,
mixed $...  ]] )"

You should use unset($a); in that case.



-Mensaje original-
De: Ralph Deffke [mailto:ralph_def...@yahoo.de] 
Enviado el: martes, 25 de agosto de 2009 13:07
Para: php-general@lists.php.net
Asunto: Re: [PHP] Re: unset() something that doesn't exist



Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `'$'' in
C:\wamp\www\TinyCreator\testCrapp8.php on line 5


"the function! doen't exist its a language construct

http://us.php.net/manual/en/function.unset.php


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