Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $arr = array();
- $arr[] = array('text' => '1');
- $arr[] = array('text' => '2');
- $res = array(
- $arr
- );
- var_dump($res);
- ==============================================================================================
- array(1) {
- [0]=>
- array(2) {
- [0]=>
- array(1) {
- ["text"]=>
- string(1) "1"
- }
- [1]=>
- array(1) {
- ["text"]=>
- string(1) "2"
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement