Function Variables
Posted: Thu Jun 19, 2003 4:06 am
I really should know this but is there a way of setting up a variable in PHP so that it can be read by any function.. without having to keep sending that variable to a function everytime it's called.
I know I could use classes but it's not worth the overhead for what I'm doing.
Basically if I set $MyName I would like to be able to access and change this variable from any where in the PHP code.. including functions().
Any ideas would be a big help.
Thanks.
I know I could use classes but it's not worth the overhead for what I'm doing.
Basically if I set $MyName I would like to be able to access and change this variable from any where in the PHP code.. including functions().
Any ideas would be a big help.
Thanks.