From: "Tyler C." on
Is the a way to have an array, or use __get() to provide different data
if you are echoing a variable, rather than if you are using it in a 'if'
statement?
From: Micah Gersten on
You can write 2 functions to handle this.

Value and OutputValue

Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com



Tyler C. wrote:
> Is the a way to have an array, or use __get() to provide different
> data if you are echoing a variable, rather than if you are using it in
> a 'if' statement?
>
 | 
Pages: 1
Prev: Date formatting issue
Next: PHP Brain Teasers