note 119383 added to language.types.string

From: Date: Tue, 24 May 2016 09:59:37 +0000
Subject: note 119383 added to language.types.string
Groups: php.notes 
Request: Send a blank email to php-notes+get-205559@lists.php.net to get a copy of this message
You can use string like array of char (like C) $a = "String array test"; var_dump($a); // Return string(17) "String array test" var_dump($a[0]); // Return string(1) "S" // -- With array cast -- var_dump((array) $a); // Return array(1) { [0]=> string(17) "String array test"} var_dump((array) $a[0]); // Return string(17) "S" // Expected result string(17) "String array test" - Norihiori ---- Server IP: 72.52.91.14 Probable Submitter: 109.190.84.196 ---- Manual Page -- http://php.net/manual/en/language.types.string.php Edit -- https://master.php.net/note/edit/119383 Del: integrated -- https://master.php.net/note/delete/119383/integrated Del: useless -- https://master.php.net/note/delete/119383/useless Del: bad code -- https://master.php.net/note/delete/119383/bad+code Del: spam -- https://master.php.net/note/delete/119383/spam Del: non-english -- https://master.php.net/note/delete/119383/non-english Del: in docs -- https://master.php.net/note/delete/119383/in+docs Del: other reasons-- https://master.php.net/note/delete/119383 Reject -- https://master.php.net/note/reject/119383 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#205559) next »