SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: array test

  1. #1
    SitePoint Zealot
    Join Date
    Apr 2003
    Location
    Perth W.A.
    Posts
    131
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    array test

    Could someone please test this script. Its not working for me and I'm completely 'stumped' as to why.

    <?
    $theday = array('Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday');
    $day_of_week = date("w");
    echo($theday[$day_of_the_week]);
    ?>

    P.S. if you see any 'stars' they shouldn't be there just delete them.

    Cheers
    Argent

  2. #2
    Sidewalking anode's Avatar
    Join Date
    Mar 2001
    Location
    Philadelphia, US
    Posts
    2,205
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    $day_of_week != $day_of_the_week

    TuitionFree a free library for the self-taught
    Anode Says... Blogging For Your Pleasure

  3. #3
    SitePoint Zealot
    Join Date
    Apr 2003
    Location
    Perth W.A.
    Posts
    131
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ahhhh! eagle eye ;-)
    Thanks very much
    Argent


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •