Re: Getting attributes from a shapefile from Mapscript/PhP (Mapserver)
Once you have the shape object, you can access the associative array values to retrieve the desired value by attribute name.
The values array is an associative array with the attribute values for
this shape. It is set only on shapes obtained from layer->getShape().
The key to the values in the array is the attribute name, e.g.