Quote:
|
Don't know if this is what your wanting or not...
|
I'm not wanting here, just answering.
Good work, and hope you learned something.
I think I know how echo and print functions work (PHP or whatever). The reason I am so smug...
What you may want to look into is:
[xtra credit]
how (exactly) does spit work?
how (exactly) does return work?
[/xtra credit]
Let me splain.
Get real low level, or not.
Obviously, both output something, somewhere. Probably the same way, just to be efficient.
The difference being one returns something, other doesn't.
But what does that mean?
Nothing, or not.
Welcome to a short lesson on "synchronous" and "asynchronous" programming.
echo is "asynchronous".
print functions, generally, "synchronous" .
means, echo spits, nothing else.
print functs, spit, and tells you spit done.
btw, you can echo functions in PHP! gets confusing.
Think of it this way:
Clickey jobber to open garage door.
echo can do that. print, can do that and return garage door open, or not.
what do you want, if parking car in garage?