Is it possible to transform an array in PHP into an NSArray?
PHP code:
<?php
$DB_HostName = "XXXXX";
$DB_Name = "XXXXX";
$DB_User = "XXXXX";
$DB_Pass = "XXXXX";
$DB_Table = "Name";
$con = mysql_connect($DB_HostName,$DB_User,$DB_Pass) or die(mysql_error());
mysql_select_db($DB_Name,$con) or die(mysql_error());
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
$result = mysql_query("SELECT * FROM Name");
while($row = mysql_fetch_array($result))
{
$Name = $row['name'];
$LastName = $row['lastname'];
echo "$Name $LastName";
echo "<br />";
}
mysql_close($con);
?>
Can I make "$Name" and "$LastName" to Foundation-styled NSArrays without using JSON?