문제

i want remote html content on my page. for that i am getting an array in stdclass object array. i print_r(array) which is given below

stdClass Object (
     [player_video] => Array ( )
     [Title] => Ciara
     [video_Link] => Oh.flv
     [img] => img
     [desc] =>
     [view] => 18
     [artist_name] => Ciara
 ) 

how can i get title from this array. i tried $array[0]['Title'] $array['player_video']['Title'] but all these type of functions return nothing. i think i m using wrong approach. Please guide how to achieve this. Thanks

도움이 되었습니까?

해결책

$array seems not to be an array at all. You'll get the title attribute of this object with $array->Title

다른 팁

Use arrow -> instead of square brackets []. Try this -

$array->Title

If it's an object then try:

$stdClass->Title;
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top