Enter the maximum price (range is between 500 and 2000)
"; //carriage return twice print "The price you entered = " . "$n1" . "
"; //print to screen the amount entered print "
Properties found:-

"; $fileName="propDetails.txt"; //puts file called propDetails into variable filename $filePointer = fopen($fileName,"r"); //opens propDetails for read $aFile=file($fileName); //puts file contents of propDetails into array called aFile for($myCount=0; $myCount\n"; //print a new line after each inner loop (4 times) iteration if condition is met } //end of outer loop function getValue($text,$position) //create the two variables to hold the passed values { $intoArray = explode(",",$text); //explode reads the text according to the passed values return $intoArray[$position]; //returns the text to where it was called in the code, puts the result into $aWord } //end of function getValue fclose ($filePointer); //close filePointer ?>