php create array manually code example Example: ccreate array php $array = array( "foo" => "bar", "bar" => "foo", );