/**
  * Creates a four-dimensional OOP array.
  *
  * @param  int $lengthDim1 The length of the array at the first level.
  * @param  int $lengthDim2 The length(s) of the array(s) at the second level.
  * @param  int $lengthDim3 The length(s) of the array(s) at the third level.
  * @param  int $lengthDim4 **OPTIONAL. Default is** `0`. The length(s) of the array(s) at the fourth level.
  *
  * @return CArrayObject The new array.
  */
 public static function makeDim4($lengthDim1, $lengthDim2, $lengthDim3, $lengthDim4 = 0)
 {
     return to_oop(CArray::makeDim4($lengthDim1, $lengthDim2, $lengthDim3, $lengthDim4));
 }
Exemple #2
0
/**
 * @ignore
 */
function oop_x($value)
{
    return is_oop_on() ? to_oop($value) : $value;
}
 /**
  * Splits a string into substrings using a specified regular expression pattern or patterns as the delimiter(s) and
  * returns the resulting strings as an array.
  *
  * If no delimiter patterns were found, the resulting array contains just one element, which is the original
  * string. If a delimiter is located at the very start or at the very end of the string or next to another
  * delimiter, it will accordingly cause some string(s) in the resulting array to be empty.
  *
  * As a special case, the delimiter pattern can be empty, which will split the string into its constituting
  * characters.
  *
  * @param  string|array|map $delimiterPatternOrPatterns The pattern or array of patterns to be recognized as the
  * delimiter(s).
  *
  * @return CArrayObject The resulting strings of type `CUStringObject`.
  */
 public function reSplit($delimiterPatternOrPatterns)
 {
     $delimiterPatternOrPatterns = self::ensureUModifier($delimiterPatternOrPatterns);
     return to_oop(CRegex::split($this, $delimiterPatternOrPatterns));
 }