PHP Pseudocode needed...

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

  1. #1
    Hey everyone!

    I've created a pseudocode for a PHP code and as I'm no good with pseudocode I was wondering if someone could tell me if it's correct please:

    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";

    ?>


    And here is the pseudocode I wrote:

    Open Coding
    Insert name of function fixmenu (name)
    Insert name2 (name1)
    Insert both names of item (Name one) (Name 2)
    Insert display message for server
    Insert name1 and name 2 of the index
    Insert desired image (Arrow) and name of image (Arrow)
    }
    Insert directory name 1 and screen text if required
    Insert Directory name 2 and different screen text if required
    Insert directory name 3 and more screen text if required.
    Close coding.

    Thanks in advance...

    Cello
     
    Cello, Mar 2, 2008 IP