#!/usr/bin/php<?php /* * * using two loops, we're going to try and bruteforce * Problem 4 on projecteuler.net. * * the range is 999 (larges 3 digit number), and the * expected output is a palendrome (larges possible) * * we're going to make a function to run through the * numbers, 100-999, to see what palendromes are made. * * to see if it is a palendrome, we're going to take * the strrev(); of the integer, and compare it to the * original. if they match, its a palendrome. * */ $term = array(); for($x=0;$x<=1;++$x)//number of indexes is $x + 1 { for($y=0;$y<=5;++$y)//number of indexes is $y + 1 { $term[$x][$y] = $y; } } //more work to be done soon.?>