I have this code, but it seems to crap out and not work correctly.

PHP Code:
<?php

    $mtext 
"What's CSS?";
    
$menu "<t|1|Intro to CSS> | <t|2|What's CSS?> | <t|3|CSS Chart>";

    echo 
"<html><body>";
    
    if (
strpos($menu"<t|") == false) {
        
//it says this = false?
        
echo "bah!";
    } else {
        do {
            
$j strpos($menu"<");
            if (
$j == false) {
                break;
            }
                
$k strpos($menu">"$j);
                
$line substr($menu$j 3, ($k 1));
                echo 
$line "<br>";
            } while (
$j != false);
        }
        return 
$text;

?>
any ideas?