Home / PHP Tips Generated By ChatGPT / Getting Values of an Array in PHP Use array_values() to get all the values from an array. Source Code $values = array_values($assoc); print_r($values);