PHP Get string between tags

Here’s a very basic function but a very useful one if you need to get text/string between html tags using PHP. <?php function getTextBetweenTags($string, $tagname) { $pattern = “/<$tagname>(.*?)<\/$tagname>/”; preg_match($pattern, $string, $matches); return $matches[1];...

More

Computer Science Thesis : Voice Calculator

This is a computer science thesis Entitled  “Voice Calculator”. This program functions like a normal calculator but you can also use your voice to process a command. Just speak through a mic when you...

More

How to replace the first occurrence of a string (PHP)

Wondering how to replace in php the only first occurrence of the string? just copy and paste this code. <? function str_replace_count($search,$replace,$subject,$times) { $subject_original=$subject; $len=strlen($search); $pos=0; for ($i=1;$i<=$times;$i++) { $pos=strpos($subject,$search,$pos); if($pos!==false) { $subject=substr($subject_original,0,$pos); $subject.=$replace;...

More

Computer Science Thesis : Piano Tutor

This is a computer science thesis Entitled  “Piano Tutor”. This program will teach user’s how to play piano by following the keys of recorder songs. User’s can also record their own music with this...

More

Snake and Ladder Board Game

I have created a quick snake and ladder board game here in VB6. Just launch the game and you can easily play just by rolling the dice. DOWNLOAD HERE

More

Damath Flash version

Already making some progress on the flash version of the Damath board game, I’ll upload a demo as soon as its already stable. so here’s  a quick screen shot of it. You can now...

More

World Clock Script

This is program in javascript that shows the time around the world just by selecting a country or a specific city. The system will display the time in that area. Everybody can use this...

More

Apples cover flow design in flash

This design has been widely used on apple products, Iphone and Ipod. a coverflow deisgn to search albums on your ipod/iphone.  This script is from weberdesignlabs.com created in flash, it can be used as...

More

Damath Board Game

DAMATH is an educational board game where players have to do mathematical computation whenever they capture an opponent’s chip. It uses the 4 basic mathematical operators. Programmed using Visual Basic 6 players can play...

More