1. #1
    Junior Member Algebra's Avatar
    Join Date
    Dec 2018
    Posts
    9
    Reputation

    11

    Credits
    1,631

    Pls Need Help PHP

    Hi need help code not work

    PHP Code:
    <?=

    $1_val "SadBoy";

    $
    1_array = ['Name' => "Is",'My' => "SadBoy"];

    if(
    array_search($val, $1_array)){print_r($1_array);
    }

    ?>

  2. #2
    "Remember, no Russian."
    Administrator
    JB's Avatar
    Join Date
    Nov 2018
    Posts
    138
    Reputation

    27

    Credits
    1,802

    RE: Pls Need Help PHP

    Originally Posted by Algebra" pid='1399' dateline='1549754630']
    Hi need help code not work

    [php]<?=

    $1_val = "SadBoy";

    $1_array = ['Name' => "Is",'My' => "SadBoy
    ;

    if(array_search($val, $1_array)){print_r($1_array);
    }

    ?>[/php]
    • you can't start a variable name with a number
    • you're using the short echo tag, use <?php instead