shaunie Posted February 25, 2013 Share Posted February 25, 2013 Hi, I have an array and I'm not sure how to get the string value back from it: array(1) { [0]=> string(30) "1st Sep, 2012 - 31st Aug, 2013" } I need to get 1st Sep, 2012 - 31st Aug, 2013 into a variable. Quote Link to comment Share on other sites More sharing options...
AyKay47 Posted February 25, 2013 Share Posted February 25, 2013 $arr = array("1st Sep, 2012 - 31st Aug, 2013") echo $arr[0]; arrays Quote Link to comment Share on other sites More sharing options...
shaunie Posted February 25, 2013 Author Share Posted February 25, 2013 Thanks for your reply but if I do that I get: string(30) "1st Sep, 2012 - 31st Aug, 2013" I need: 1st Sep, 2012 - 31st Aug, 2013 Quote Link to comment Share on other sites More sharing options...
Jessica Posted February 25, 2013 Share Posted February 25, 2013 and the problem IS? Quote Link to comment Share on other sites More sharing options...
Jessica Posted February 25, 2013 Share Posted February 25, 2013 Wait are you saying you actually stored the results of a var_dump into an array? Why on earth? Go back to where that got all messed up and fix it there. Quote Link to comment Share on other sites More sharing options...
AyKay47 Posted February 25, 2013 Share Posted February 25, 2013 Sounds like you need a little more help then just outputting an array index, please post the relevant code so we can help you further. Quote Link to comment 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.