1. #1

    Pls Need Help PHP
    Share: -->

    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
    160
    Reputation

    49

    Credits
    3,590

    RE: Pls Need Help PHP
    Share: -->

    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