|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-06-26 20:27 UTC] derick@php.net
[2005-06-26 21:39 UTC] noscript at uni dot de
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 22 00:00:01 2025 UTC |
Description: ------------ I cannot pass an direct function return to the function end(); Is it a bug or is it a feature... Reproduce code: --------------- $name="file.dat" //does not work: $end=end(explode(".", $name)); //works: $arr=explode(".", $name); $end=end($arr); Expected result: ---------------- $end has value "dat" Actual result: -------------- Error message "only allowed to pass variables"