Re: reporting errors when $ sign is missing in front of a variable

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

 



Also, you get the output "my_var" because if you say echo my_var PHP
looks for a constant my_var and if it doesn't find one it just assumes
you want the name of the constant.Look in the manual page for
constants for more details about how they work
http://php.net/manual/en/language.constants.php

On Thu, Jan 12, 2012 at 9:57 AM, marco@xxxxxxxxxx <marco@xxxxxxxxxx> wrote:
>
> Haluk Karamete <halukkaramete@xxxxxxxxx> hat am 12. Januar 2012 um 06:17
> geschrieben:
>
>> Thanks...
>> Well I just changed the <?php error_reporting (E_ALL ^ E_NOTICE); ?>
>>  to <?php error_reporting (E_ALL ); ?>  and that does it for me.
>>
>> Notice: Use of undefined constant my_age - assumed 'my_age' in
>> D:\Hosting\5291100\html\blueprint\bp_library.php on line 40
>> my_age
>>
>> Now back in business :)
>
> If you are programming with an IDE, it does the work for you. While programming
> you will see warning notices, that you are refering to something unknown.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

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




[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