How to add new key value in an array php? Posted on October 11, 2017 by admin $arrayname[key]=value; Sample: $order_statuses[“wc-shipped”]=”shipped”;