0
   

Create dynamic array php

 
 
Reply Wed 30 May, 2012 05:29 am
I have an data set as follows

while($row = oci_fetch_array($stid05, OCI_BOTH)) {
echo 'country '. $row[0];
echo 'visits'.$visits[1];
}
I need to create following array dunamiccaly

$series = array( array( country => "TAVGA",
visits => 256,
),
array( country => "hawar",
visits => 257,
),
array( country => "awesar",
visits => 258,
),
array( country => "zhinar",
visits => 259,
),
array( country => "BBB",
visits => 259,
),
);
Kindly assist me, how to generate

Thsnks
Gayan
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Question • Score: 0 • Views: 2,505 • Replies: 0
No top replies

 
 

Related Topics

 
  1. Forums
  2. » Create dynamic array php
Copyright © 2024 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 12/28/2024 at 04:23:01