Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-12-2013, 12:37 AM   PM User | #1
Willbbz
New to the CF scene

 
Join Date: Feb 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Willbbz is an unknown quantity at this point
Link an array from a URL and print array to a web page

Howdy

Novice here but what I'm trying to do is use an array that's printed to a webpage in a format like this

Code:
["1","2","3","4","5","6","7","8","9"]
The values are always different every time I reload the URL where the array comes from so what I'd like to do is exactly this:

Get the values from the array

Print a static URL for each array value and append the array value to the end of the URL.

Would anybody be able to help me out as I'm a bit lost with this

EDIT:

Here's the URL to the webpage where I'll be getting the array from
Willbbz is offline   Reply With Quote
Old 02-12-2013, 01:27 AM   PM User | #2
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,641
Thanks: 4
Thanked 2,448 Times in 2,417 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
That's a json array. You can get a PHP array out of it by using json_decode() function.
__________________
As of PHP 5.5, the MySQL library has been officially deprecated. It is recommended to move to either MySQLi or PDO libraries for your mysql connectivity. See here for help choosing which interface you prefer: http://php.net/manual/en/mysqlinfo.api.choosing.php
Fou-Lu is offline   Reply With Quote
Reply

Bookmarks

Tags
array, link, php

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:14 PM.


Advertisement
Log in to turn off these ads.