note 117762 added to function.join
| From: | A.RafayHingoro | Date: | Tue, 04 Aug 2015 20:36:50 +0000 |
| Subject: | note 117762 added to function.join | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-203263@lists.php.net to get a copy of this message | ||
<?php
//first example
$array = array('1', '2', '3', '4', '5',
'6', '7', '8', '9', '10');
echo join('<br>', $array);
//first example (result)
/*
1
2
3
4
5
6
7
8
9
10
*/
//second example
$arr[] = '1a';
$arr[] = '2b';
$arr[] = '3c';
$arr[] = '4d';
$arr[] = '5e';
$arr[] = '6f';
$arr[] = '7g';
$arr[] = '8h';
$arr[] = '9i';
$arr[] = '10j';
echo join('<br>', $arr);
//second example (result)
/*
1a
2b
3c
4d
5e
6f
7g
8h
9i
10j
*/
----
Server IP: 72.52.91.14
Probable Submitter: 118.103.228.144
----
Manual Page -- http://php.net/manual/en/function.join.php
Edit -- https://master.php.net/note/edit/117762
Del: integrated -- https://master.php.net/note/delete/117762/integrated
Del: useless -- https://master.php.net/note/delete/117762/useless
Del: bad code -- https://master.php.net/note/delete/117762/bad+code
Del: spam -- https://master.php.net/note/delete/117762/spam
Del: non-english -- https://master.php.net/note/delete/117762/non-english
Del: in docs -- https://master.php.net/note/delete/117762/in+docs
Del: other reasons-- https://master.php.net/note/delete/117762
Reject -- https://master.php.net/note/reject/117762
Search -- https://master.php.net/manage/user-notes.php