Strings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The following code works:

<?php

$image = ³²;

    if ($image == NULL) {
            print ³False!²;
            }else{
            print ³$var²;
    }

?>

However, this does not:

<?php

$image = ³²;

    if ($image == NULL) {
            print ³False!²;
            }else{
            print ³<img src=\²$var\²>²;
    }

?>

It seems that if I add a string, rather than just the variable, then does
not work. I am getting an unexpected T_IS_EQUAL error.

--
Thanks,
Steve Marquez

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux