php test araba - PHP Online
Form of PHP Sandbox
Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php
in the places where the PHP script should be executed.
Result of php executing
Full code of php test araba.php
- <?php
- $array = array(
- array(
- "plaka_no" => "35 AA 001",
- "model" => "Renault")
- , array(
- "plaka_no" => "35 AA 002",
- "model" => "Clio")
- );
- function in_array_r($aranan, $dizi) {
- foreach ($dizi as $item) {
- if (($item == $aranan) || (is_array($item) && in_array_r($aranan, $item))) {
- return true;
- }
- }
- return false;
- }
- $plakam = "35 AA 001";
- echo in_array_r($plakam, $array) ? 'dizide' : 'dizide degil';
- ?>