Reply To: function

Please help me…
Reservation.class.php

private function add($array){
global $wpdb;
$informations = array(‘arrival’, ‘name’,’email’, ‘departure’, ‘room’, ‘roomnumber’, ‘number’, ‘childs’, ‘country’, ‘approve’, ‘custom’, ‘customp’, ‘reservated’, ‘user’, ‘price’);
$rarray = ”;
foreach($array as $key => $info){
if(!in_array($key, $informations)) unset($array[$key]);
else {
$rarray[$key] = $info;
}
}
if(!isset($rarray[‘price’])) $rarray[‘price’] = ”;

if ($informations[9] === “yes”){
$return = $wpdb->insert( $wpdb->prefix.’reservations’, $rarray);

} else {
$return = $wpdb->insert( $wpdb->prefix.’reservations1′, $rarray);
}

Not function help me___________