function show_filmography() { $result = ""; foreach (range(1, 55) as $number) { $film_info_array = find_selected_film_as_array($number); $result .= create_table_item($film_info_array, $number); } return $result; }
*/ if ($g != "any") { if (strpos($film_info_array[3], $g) === false) { $validChoice = false; } } if ($w !== "either") { if (strpos($film_info_array[4], $w) === false) { $validChoice = false; } } if ($a !== "either") { if (strpos($film_info_array[5], $a) === false) { $validChoice = false; } } if ($d !== "either") { if (strpos($film_info_array[6], $d) === false) { $validChoice = false; } } /* After all is said and done, if the film fell within the given constraints, it is added to the table */ if ($validChoice == true) { $finalString .= create_table_item($film_info_array, $number); } } // Print it out to the table echo $finalString;