Skip to content
Advertisement

Tag: scalar

Alternative for define array php

I’m looking for an alternative for define(‘name’, array) as using an array in define gives me this error: Constants may only evaluate to scalar values in … The array I’m mentioning contains strings only. Answer From php.net… The value of the constant; only scalar and null values are allowed. Scalar values are integer, float, string or boolean values. It is

Advertisement