Skip to content

Instantly share code, notes, and snippets.

@nodesocket
Created April 21, 2013 19:43
Show Gist options
  • Save nodesocket/5430797 to your computer and use it in GitHub Desktop.
Save nodesocket/5430797 to your computer and use it in GitHub Desktop.
<?php
$start = $argv[1];
$end = $argv[2];
while($start < $end) {
$start_string = (string)$start;
if($start_string === strrev($start_string)) {
echo $start_string . "\n";
}
$start++;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment