note 79793 added to function.is-writable
| From: | iceman2g2athotmaildotcom at osu1 dot php dot net | Date: | Thu, 13 Dec 2007 07:16:01 +0000 |
| Subject: | note 79793 added to function.is-writable | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-133410@lists.php.net to get a copy of this message | ||
Those wishing to use the code suggested by legolas558 d0t users dot sf dot net should consider using
[] to access the last character of $path, reason being {} is deprecated as of PHP 6.
So
<?php
// old
$path{strlen($path)-1}
// new
$path[strlen($path)-1]
?>
----
Server IP: 66.207.199.35
Probable Submitter: 99.240.33.227
----
Manual Page -- http://www.php.net/manual/en/function.is-writable.php
Edit -- https://master.php.net/note/edit/79793
Del: integrated -- https://master.php.net/note/delete/79793/integrated
Del: useless -- https://master.php.net/note/delete/79793/useless
Del: bad code -- https://master.php.net/note/delete/79793/bad+code
Del: spam -- https://master.php.net/note/delete/79793/spam
Del: non-english -- https://master.php.net/note/delete/79793/non-english
Del: in docs -- https://master.php.net/note/delete/79793/in+docs
Del: other reasons-- https://master.php.net/note/delete/79793
Reject -- https://master.php.net/note/reject/79793
Search -- https://master.php.net/manage/user-notes.php