|
-
Jan 14th, 2003, 09:16 AM
#1
-
Jan 14th, 2003, 09:18 AM
#2
dunno.... I'm only aware of echo in PHP.....
-
Jan 14th, 2003, 09:23 AM
#3
-
Jan 14th, 2003, 10:56 AM
#4
Junior Member
Both functions do the same but print returns TRUE on success or FALSE on failure... So, no real difference for normal use.
-
Jan 14th, 2003, 11:04 AM
#5
Aah... thanks.
I'll just stick to echo then.
-
Jan 15th, 2003, 06:15 AM
#6
Frenzied Member
Is there ever a case when print would fail?
-
Jan 15th, 2003, 07:11 AM
#7
Junior Member
I can't think of any...
-
Jan 17th, 2003, 03:18 PM
#8
Frenzied Member
Seems a bit pointless anyway because if print fails you can't print to the user there was an error Suppose you could print to a file or e-mail or something though.
-
Jan 18th, 2003, 07:44 AM
#9
I'm new to PHP, but I'm guessing that the print can fail if the value it is to print is erroneous.
For example, if there were a function that returns a value, and we do a
PHP Code:
print IsHeStupid("RickBull");
it would return a "Absolutely"
On the other hand, if the function were to fail
PHP Code:
print SizeOfBrain("RickBull");
there might be an error message?
I'm only guessing here, I haven't actually tried it out.
-
Jan 18th, 2003, 07:46 AM
#10
Junior Member
You wouldn't know if the error is from not being able to print or not being able to return the sizeofbrain...
-
Jan 18th, 2003, 07:54 AM
#11
Frenzied Member
You know that frog has been pretty rude to me in recent times! Although I can't really say that was a rude comment, more honest than rude.
-
Jan 18th, 2003, 01:44 PM
#12
Originally posted by Rick Bull
You know that frog has been pretty rude to me in recent times! Although I can't really say that was a rude comment, more honest than rude.
A frog on the forums?
Riiiiight....
Last edited by mendhak; Jan 18th, 2003 at 02:07 PM.
-
Jan 19th, 2003, 07:25 AM
#13
Frenzied Member
The culprit:
-
Jan 19th, 2003, 08:58 AM
#14
ROFL
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|