Example #1
0
 /// <summary>
 /// Checks whether a dereferenced variable is a scalar.
 /// </summary>
 /// <param name="variable">The variable.</param>
 /// <returns>Whether <paramref name="variable"/> is an integer, a double, a bool or a string after dereferencing.</returns>
 public static bool is_scalar(PhpValue variable) => PhpVariable.IsScalar(variable);
Example #2
0
 public static bool IsScalar(object variable)
 {
     return(PhpVariable.IsScalar(variable));
 }