I need to know how to store the data of an array into a variable, using the looping below:
Receiving data:
$sql="SELECT 'devicetoken' FROM 'devicetokensios' ORDER BY 'index'";
$resultado = mysql_query($sql) or die ("Erro .:" . mysql_error());
$deviceToken = array();
while($r = mysql_fetch_assoc($resultado))
{
$deviceToken [] = $r;
}
mysql_close();
After receiving the data, how do I loop through and control the array data using its index:
Example of how to use array data:
for($index = 0; $index <= count($deviceToken); $index ++){
$outraVarial = $deviceToken[$index];
}