note 85397 added to function.print
| From: | http://www dot danielxmorris dot com at osu1 dot php dot net | Date: | Thu, 28 Aug 2008 14:46:20 +0000 |
| Subject: | note 85397 added to function.print | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-143940@lists.php.net to get a copy of this message | ||
An update to the println function I wrote below, this is a more efficient, correct and returns a
value (1, always; (print)).
<?php
function println($string_message = '') {
return isset($_SERVER['SERVER_PROTOCOL']) ? print "$string_message<br
/>" . PHP_EOL:
print $string_message . PHP_EOL;
}
?>
----
Server IP: 87.124.35.190
Probable Submitter: 217.43.20.6
----
Manual Page -- http://www.php.net/manual/en/function.print.php
Edit -- https://master.php.net/note/edit/85397
Del: integrated -- https://master.php.net/note/delete/85397/integrated
Del: useless -- https://master.php.net/note/delete/85397/useless
Del: bad code -- https://master.php.net/note/delete/85397/bad+code
Del: spam -- https://master.php.net/note/delete/85397/spam
Del: non-english -- https://master.php.net/note/delete/85397/non-english
Del: in docs -- https://master.php.net/note/delete/85397/in+docs
Del: other reasons-- https://master.php.net/note/delete/85397
Reject -- https://master.php.net/note/reject/85397
Search -- https://master.php.net/manage/user-notes.php