Ok, here you go, (might have some syntax issues, didn't tough PhP for over 
1.5 decades :)

<?php
  header("Access-Control-Allow-Origin: *");
 $data = 'data' => array(
 array('userID' => '1', 'userName' => 'user1', 'password' => 'pass1'),
 array('userID' => '2', 'userName' => 'user2', 'password' => 'pass2'),
 array('userID' => '3', 'userName' => 'user3', 'password' => 'pass3'),
 array('userID' => '4', 'userName' => 'user4', 'password' => 'pass4'),
 array('userID' => '5', 'userName' => 'user5', 'password' => 'pass5')
 );
 
 echo json_encode($data); 
?>


Regards
Sander


-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to