I have an array like:

```
$profile_typeid [] = custom_profile(
    0 => "44258",
    1 => "44259",
);

```

and another array `$meta_data[]`, I want to push this array `$profile_typeid []`. Before that it should check in `$meta_data[]` whether it contains `$profile_typeid []` or not. If not then add other wise it should overwrite.

How can I get the things in PHP

I tried like:

```
   if(!in_array($meta_data,$profile_typeid,true)){
        array_push($meta_data, $profile_typeid);
 }

```

I have var\_dump for two arrays like

`array
 'custom\_profile\_type' => 
 array
 0 => string '39242' (length=5)

null`