note 126084 added to language.types.string

From: Date: Tue, 18 May 2021 12:09:06 +0000
Subject: note 126084 added to language.types.string
Groups: php.notes 
Request: Send a blank email to php-notes+get-216393@lists.php.net to get a copy of this message
Be carefull with this kind of error, since is common when you cut & paste lines with concatenation: <?php $s = 'One '. 'Two '; 'Three '. some_function( $s ); ?> The value for $s is "One Two ", because there is the semicolon and then 'Three ' is evaluated as an expression, then concatenated to the result of some_function(). ---- Server IP: 45.112.84.4 Probable Submitter: 45.112.85.242 (proxied: 170.51.110.102) ---- Manual Page -- https://php.net/manual/en/language.types.string.php Edit -- https://main.php.net/note/edit/126084 Del: integrated -- https://main.php.net/note/delete/126084/integrated Del: useless -- https://main.php.net/note/delete/126084/useless Del: bad code -- https://main.php.net/note/delete/126084/bad+code Del: spam -- https://main.php.net/note/delete/126084/spam Del: non-english -- https://main.php.net/note/delete/126084/non-english Del: in docs -- https://main.php.net/note/delete/126084/in+docs Del: other reasons-- https://main.php.net/note/delete/126084 Reject -- https://main.php.net/note/reject/126084 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#216393) next »