<?php // Complete the crosswordPuzzle function below. function crosswordPuzzle($crossword, $words) { } $fptr = fopen(getenv("OUTPUT_PATH"), "w"); $stdin = fopen("php://stdin", "r"); $crossword = array(); for ($i = 0; $i < 10; $i++) { $crossword_item = ''; fscanf($stdin, "%[^\n]", $crossword_item); $crossword[] = $crossword_item; } $words = ''; fscanf($stdin, "%[^\n]", $words); $result = crosswordPuzzle($crossword, $words); fwrite($fptr, implode("\n", $result) . "\n"); fclose($stdin); fclose($fptr);
You have javascript disabled. You will not be able to edit any code.