PHP’s extract() function can take on one of several extract_types. But what’s the difference between extr_prefix_same and extr_prefix_if_exists? The manual makes it sound like, in either case, new variables will be prefixed if the variable name already exists.
Thanks!
When using
EXTR_PREFIX_IF_EXISTS, if the variable doesn’t already exist then the prefixed version won’t be created either. In this example:$my_band$my_caren’t created because$band$cdon’t exist.