Find or Search array | WordPress.org

[ad_1]

Hello Sir/Madam,

I wrote a “Find” array in server side, but it dose not work! could you tell me please, what part is false?

<?php 

$GLOBALS['SERVER_SIDE_EQUATIONS']['equation_23'] = array($p1)('222', '333', '444'); 

//search element 
$item = '$p1'; 
if(in_array($item, $p1)){ 
        //the item is there 
    return "ok"; 
} 
else{ 
        //the item isn't there 
    return "null"; 
} 
?> 

The page I need help with: [log in to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer