Re: Print & Echo

From: Date: Mon, 12 Jun 2000 10:19:12 +0000
Subject: Re: Print & Echo
Groups: php.general 
Request: Send a blank email to php-general+get-1599@lists.php.net to get a copy of this message
Addressed to: "dhaval desai" <dhaval_adams@hotmail.com> php-general@lists.php.net ** Reply to note from "dhaval desai" <dhaval_adams@hotmail.com> Mon, 12 Jun 2000 06:28:35 GMT > > Hi! > > Can anybod explain me the difference between echo and print commands > in php. > My first thought was that one is spelled 'print' the other is spelled 'echo', but it turns out that is not quite right. You can read about it here: www.php.net/manual/function.echo.html www.php.net/manual/function.print.html It is a good thing I did. The difference is that echo will take more than one parameter like this: echo "One ", "Two ", "Three"; // returns: One Two Three With print that is a syntax error, only one thing to print is allowed. print "One"; Rick Widmer Internet Marketing Specialists www.developersdesk.com

« previous php.general (#1599) next »