PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
in asp when i access a variable that was sent to the server
i dont have to check if it exist or not i just can try to access and if it dosent exist
i get notjing back
is it possible in php so i will not have to use isset() every time?
thnaks in advance
peleg
idont want to report on error!!!!
i want to be able to call like in asp avariable that event dosent exist!
and if not exist to get a blank empty or what ever variable
by the way :
i did read abut error_reporting but i dont want errors not to be messaged to me
i want to know all about them where and why
beacuse of that that function isnt good for me
pelegk2 wrote:by the way :
i did read abut error_reporting but i dont want errors not to be messaged to me
i want to know all about them where and why
beacuse of that that function isnt good for me
feyd's solution turns off notices, not errors.
Why would you want to call a variable that doesn't exist. That would just lead to problems and messy code in my opinion.
So the answer to your question is turn off notices or use isset(), not really that big of a deal is it!?