I have just learned php about object arrays. I don't know how to solve a small problem. I have an array with the following content: PHPcodeArray ([0] = & gt; stdClassObject ([post_title] = & gt; the test title is basically the same. [meta_v is a question about object arrays.
I just learned php and I don't know how to solve a small problem.
I have an array with the following content:
PHP code
Array ([0] => stdClass Object ([post_title] => The Test title is basically the same [meta_value] => 1) [1] => stdClass Object ([post_title] => The Test title is basically the same [meta_value] => 1333353649: 1) [2] => stdClass Object ([post_title] => The Test title is basically the same [meta_value] => flash) [3] => stdClass Object ([post_title] => The Test title is basically the same [meta_value] => field_4ecbd5f8c4dbe) [4] => stdClass Object ([post_title] => The Test title is basically the same. [meta_value] => http://www.baidu.com ) [5] => stdClass Object ([post_title] => The Test title is basically the same [meta_value] => field_4ecbd6154b2a7) [6] => stdClass Object ([post_title] => The Test title is basically the same. [meta_value] => This is an address file) [7] => stdClass Object ([post_title] => The Test title is basically the same [meta_value] => field_4ecbd9d8b1b04) [8] => stdClass Object ([post_title] => The Test title is basically the same [meta_value] => 010-100000) [9] => stdClass Object ([post_title] => The Test title is basically the same [meta_value] => field_4ecbd9ed176ed) [10] => stdClass Object ([post_title] => The Test title is basically the same. [meta_value] => http://www.Google.com ) [11] => stdClass Object ([post_title] => The Test title is basically the same [meta_value] => field_4ecbda0cc2f65) [12] => stdClass Object ([post_title] => The Test title is basically the same [meta_value] => Nothing) [13] => stdClass Object ([post_title] => The Test title is basically the same [meta_value] => field_4ecbda2cce3cf) [14] => stdClass Object ([post_title] => The Test title is basically the same [meta_value] => Chinese) [15] => stdClass Object ([post_title] => The Test title is basically the same [meta_value] => field_4ecbdad643aa0) [16] => stdClass Object ([post_title] => The Test title is basically the same [meta_value] => FM) [17] => stdClass Object ([post_title] => The Test title is basically the same [meta_value] => field_4ecbdbc2bbc73) [18] => stdClass Object ([post_title] => The Test title is basically the same [meta_value] => 999.8) [19] => stdClass Object ([post_title] => The Test title is basically the same [meta_value] => field_4ecbdbd8600a5) [20] => stdClass Object ([post_title] => The Test title is basically the same [meta_value] => 200000000) [21] => stdClass Object ([post_title] => The Test title is basically the same [meta_value] => field_4ecbdc0b38fe2) [22] => stdClass Object ([post_title] => The Test title is basically the same [meta_value] => 90) [23] => stdClass Object ([post_title] => The Test title is basically the same [meta_value] =>) [24] => stdClass Object ([post_title] => The Test title is basically the same [meta_value] => field_4ecc8cb6be29c) [25] => stdClass Object ([post_title] => The Test title is basically the same [meta_value] =>) [26] => stdClass Object ([post_title] => The Test title is basically the same [meta_value] => field_4ecc97529e9f4) [27] => stdClass Object ([post_title] => The Test title is basically the same [meta_value] => 176 ))
The title here is basically the same. How can I retrieve each value in meta_value?
Please advise
------ Solution --------------------
If:
$ Arr =
Array (
[0] => stdClass Object ([post_title] => The Test title is basically the same [meta_value] => array (123, 'ABC ', ['param'] => 'param _ value '))
)
$ Abc = $ arr-> meta_value [1];
$ Param = $ arr-> meta_value ['param'];