- preg_match: documentation ( source)
- print_r: documentation ( source)
<?php
$HOME_DIR="D:\wamp\www\laddercs";
$TEMPLATE_DIR="$HOME_DIR/templates";
echo ReadTemplate("$TEMPLATE_DIR/common/home_middle.html");
$matches = "1111ewrw__";
preg_match("/(\w+)?/", "1ewrw",$matches);
print_r($matches);
echo "\n";
preg_match("/(\w*)/", "rwerwe",$matches);
print_r($matches);