new php creating new array code example Example: how to create new array in php $array = array( "foo" => "bar", "bar" => "foo", );