ukscotth Posted November 8, 2011 Share Posted November 8, 2011 Hi all, I have the following : print_r($fqlResult); Which gives the following result : Array ( [0] => Array ( [src_big] => http://a5.sphotos.ak.fbcdn.net/hphotos-ak-ash4/299117_2121699756933_1079004376_2442101_3103384_n.jpg ) ) I want to grab just the image url from it and store it in a seperate variable. Any ideas how I can do this plzzz ? Thanks in advance, Scott. Quote Link to comment https://forums.phpfreaks.com/topic/250743-getting-a-certain-part-of-an-array/ Share on other sites More sharing options...
xyph Posted November 9, 2011 Share Posted November 9, 2011 Read the manual? $fqlResult[0]['src_big'] Quote Link to comment https://forums.phpfreaks.com/topic/250743-getting-a-certain-part-of-an-array/#findComment-1286440 Share on other sites More sharing options...
Pikachu2000 Posted November 9, 2011 Share Posted November 9, 2011 You know the array's structure from the output of print_r(), so what else is it you need to know? Quote Link to comment https://forums.phpfreaks.com/topic/250743-getting-a-certain-part-of-an-array/#findComment-1286441 Share on other sites More sharing options...
ukscotth Posted November 9, 2011 Author Share Posted November 9, 2011 Thanks. I did read the manual but im new to using arrays so it didnt make much sense to me. Thanks again. Quote Link to comment https://forums.phpfreaks.com/topic/250743-getting-a-certain-part-of-an-array/#findComment-1286444 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.