> print is a function where u can add html tags like
> print("<br><b> hello $name") however echo is a command where we can't 
> include html tags ! echo "hello".$name

This is VERY incorrect, please read this :

> >What is the difference between echo and print             ?
> >-----------------------------------------------------------
> >http://www.faqts.com/knowledge_base/view.phtml/aid/1/fid/41

And then try this :

$name = 'fred';

echo  "<br><b>$name</b><br>" . $name;
print "<br><b>$name</b><br>" . $name

Then try this     :

echo  'sup','yo';
print 'sup','yo'; // Parse error!

But that FAQ explains it better then I can so ...

Philip

> >On 26 xxx -1 [EMAIL PROTECTED] wrote:
> >
> > > I know it is a kind of stupid question but I was trying to figure out
> > > the difference between "Echo" and "Print" and I didn't find it...Could
> > > anybody explain that to me??
> > > Thank you
> > >
> > > Felipe Lopes



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to