Hi i have an array $polylines:
structure:
$polylines[$row['polyline_name']][$row['line_seq_number']]["from_point"]["long"]=$row["longitude"];
Ok
Now i want to write something like:
foreach ($polylines as $v1) {
foreach ($v1 as $v2) {
if($v2["from_point"]["long"]==$tetmimenh && $v2["from_point"]["lat"]==$tetagmenh || ($v2["to_point"]["long"]==$tetmimenh && $v2["to_point"]["lat"]==$tetagmenh))
{
$counter2++;
foreach ($v1 as $vv2)
{
if($v1[])//I don't know what to write here..I just want to copy this row but i don't know how to match the indexes
structure:
$polylines[$row['polyline_name']][$row['line_seq_number']]["from_point"]["long"]=$row["longitude"];
Ok
Now i want to write something like:
foreach ($polylines as $v1) {
foreach ($v1 as $v2) {
if($v2["from_point"]["long"]==$tetmimenh && $v2["from_point"]["lat"]==$tetagmenh || ($v2["to_point"]["long"]==$tetmimenh && $v2["to_point"]["lat"]==$tetagmenh))
{
$counter2++;
foreach ($v1 as $vv2)
{
if($v1[])//I don't know what to write here..I just want to copy this row but i don't know how to match the indexes