Re: Handling Code Continuation
| From: | Greg Donald | Date: | Sat, 26 Jun 2004 02:29:15 +0000 |
| Subject: | Re: Handling Code Continuation | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-189094@lists.php.net to get a copy of this message | ||
On Fri, 25 Jun 2004 22:13:03 -0400, gohaku <gohaku@earthlink.net> wrote:
>
> Hi everyone,
> I would like to know how to handle code breaks or code blocks
> that takes up more than two lines.
> For readability, I would like to know if there is something like the
> following:
> function input($type,$size,$name,$value)
> {
> return "<input type=\"$type\" size=\"$size\"
> value=\"$value\" >>>
> name=\"$name\">";
> }
function input($type,$size,$name,$value)
{
return <<<EOF
<input type="$type" size="$size" value="$value"
name="$name">
EOF;
}
--
Greg Donald
http://destiney.com/