สั้นๆง่ายๆ
<?php
strip_tags(’string str’);
?>
December 18th, 2007
admin | 1,794 viewsสั้นๆง่ายๆ
<?php
strip_tags(’string str’);
?>
December 16th, 2007
admin | 513 views ดึงจาก manual มาเลยหุหุ
<?php
$tags = get_meta_tags(’http://www.example.com/’);
echo $tags['author'];
echo $tags['keywords'];
echo $tags['description'];
?>
December 11th, 2007
admin | 1,064 views“มี 5 ดาว คือมีคะแนน 1-5 คะแนน”
$result = round((5*(ผลบวกคะแนนโหวต))/(5*(จำนวนคนโหวต));
December 5th, 2007
admin | 4,345 viewsFunction
<?php
function removeFolder($dir){
if(!is_dir($dir))
return false;
for($s = DIRECTORY_SEPARATOR, $stack = array($dir), $emptyDirs = array($dir); $dir = array_pop($stack);){
if(!($handle = @dir($dir)))
continue;
while(false !== $item = $handle->read())
$item != ‘.’ && $item != ‘..’ && (is_dir($path = $handle->path . $s [...]