PHP pseudocode needed... =]

Discussion in 'Programming' started by Cello, Mar 2, 2008.

  1. #1
    Hey everyone!

    I'm new here and this site was recommended to me by a friend. He said that the members of this site were kind and experienced enough to help with general programming. What I'm looking for is if someone could create a pseudocode for me? I've alraedy got the code but need the pseudocode for a chapter I'm creating on my next tutorial. Of course, credit will be given and a link to the site.

    The code is in PHP:

    <?php

    function fixmenu ($name1) {

    $name2 = ucfirst($name1);

    $item= "<a href=\"/$name1/\">$name2 </a>";

    $theur = $_SERVER['REQUEST_URI'];

    if ( ($theur =="/$name1/") or ($theur =="/$name1/index.php") )
    {
    $item= "<img src=\"/images/arrow.gif\" alt=\"arrow \">$name2";
    }
    return $item;
    }

    echo fixmenu(directoryname1) . "<br/>Screen Text If Required";

    echo fixmenu(directoryname2) . "<br/>Different Screen Text If Required";

    echo fixmenu(directoryname3) . "<br/>More Screen Text If Required";

    ?>


    If someone could write a pseudocode for that then I would be EXTREMELY grateful and will link you to the tutorial when it is finished.

    Thanks in advance...

    Cello
     
    Cello, Mar 2, 2008 IP