10 Reputation Points
Ranked #3K
- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
100% Quality Score
- Upvotes Received
- 4
- Posts with Upvotes
- 3
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
~685 People Reached
This member's community profile is only visible to logged in members until they have earned 15 reputation points.
Favorite Forums
Web Development x 4
Favorite Tags
php x 4
database-design x 1
3 Posted Topics
For the array posted you would do... foreach($json_info as $key=>$value){ //use "\n" instead of "<br />" if printing in console echo $key."<br />"; //data /* each value is an array so need to use the index, otherwise it'll just print 'Array' */ foreach($value as $k=>$v) echo $k." :: ".$v[0]."<br />"; …
As @zagga suggested, put your code in the body to see it on the page, otherwise you won't see anything on the page... look at the browser tab to see your changes in the <title> element. cheers!
Re: print array
Try... if(count($skills_1)) { foreach($skills_1 as $i=>$skills) { echo '<tr>'; foreach($skills as $key=>$skilldata) echo '<td>'.$skilldata.'</td>'; echo '</tr>'; } } Hope it helps!
The End.