Need some PHP help... Thanks :)

Discussion in 'PHP' started by iHolyElement, Jul 17, 2009.

  1. wd_2k6

    wd_2k6 Peon

    Messages:
    1,740
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #21
    Hm that's strange it should be finding the | character in $time ?

    Try this:
    
    $string= "|";
    $pos = strpos($time, $string);
    if($pos === false) echo "The String: $string was not found in the string $time";
    else echo "<h1>The string was found at position: $pos</h1>";
    //$time = substr_replace($time, "test", $pos);
    
    PHP:
    Please display output of the above so I can see what is inside $time thanks.
     
    wd_2k6, Jul 23, 2009 IP