,, PHP


php3 - 8


            $i_stop_start=0;

            do {

            $id_bst=$arr_id[$i_stop_start];        

            if($id_bst == $this->id_busstop) break;   

            $i_stop_start++;

            } while($i_stop_start<$numb_stop);

            $i_stop_finish=$i_stop_start;

            do {

            $id_bst=$arr_id[$i_stop_finish];

            if($id_bst == $id_stop_finish) {

            $id_first=$this->id_busstop;

            $id_second=$id_stop_finish;

            $name_rout=$this_rout->name_route;

            $all_time=$this_rout->rout_times;

            $time_start=$all_time[$i_stop_start];

            $time_finish=$all_time[$i_stop_finish];


            echo"<p> YOU CAN USE ONE ROUT AND GET YOUR DESTINATION:";

            echo"<br>Rout $name_rout will be on the start at time: $time_start";

            echo"<br>And on the destination will be at time: $time_finish";




- -  - -  - -