array php key and val code example Example: ccreate array php $array = array( "foo" => "bar", "bar" => "foo", );