note 125647 added to functions.returning-values

From: Date: Sat, 02 Jan 2021 12:03:02 +0000
Subject: note 125647 added to functions.returning-values
Groups: php.notes 
Request: Send a blank email to php-notes+get-216049@lists.php.net to get a copy of this message
For those looking to write strict code; PHP does NOT support strict return type definitions like other languages do. Something like <?php ?string public function GetMeaningOfLife() { return 'Live Life!'; } ?> will trip over the ?string bit. ---- Server IP: 45.112.84.4 Probable Submitter: 195.138.250.34 (proxied: 2001:1c01:31c4:b600:7077:117a:6a9c:ae34) ---- Manual Page -- http://php.net/manual/en/functions.returning-values.php Edit -- https://master.php.net/note/edit/125647 Del: integrated -- https://master.php.net/note/delete/125647/integrated Del: useless -- https://master.php.net/note/delete/125647/useless Del: bad code -- https://master.php.net/note/delete/125647/bad+code Del: spam -- https://master.php.net/note/delete/125647/spam Del: non-english -- https://master.php.net/note/delete/125647/non-english Del: in docs -- https://master.php.net/note/delete/125647/in+docs Del: other reasons-- https://master.php.net/note/delete/125647 Reject -- https://master.php.net/note/reject/125647 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#216049) next »