3.1416 show_var( $proteins) / / prints: / / array(3) {/ / [0]= / / string(10) "hemoglobin "/ / [1]= / / string(20) "cytochrome c oxidase" / / [2]= / / string(10) "ferredoxin "/ /}
참고: is_scalar() does not consider resource type values to be scalar as resources are abstract datatypes which are currently based on integers. This implementation detail should not be relied upon, as it may change.