Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Utils.php

function Utils::removeArrayValue

Delete an array element by value

Parameters

array $array Array:

mixed $val Value to remove:

Return value

void

2 calls to Utils::removeArrayValue()
Parser::postInit in vendor/mck89/peast/lib/Peast/Syntax/Parser.php
Post initialize operations
Scanner::__construct in vendor/mck89/peast/lib/Peast/Syntax/Scanner.php
Class constructor

File

vendor/mck89/peast/lib/Peast/Syntax/Utils.php, line 310

Class

Utils
Utilities class.

Namespace

Peast\Syntax

Code

public static function removeArrayValue(&$array, $val) {
    array_splice($array, array_search($val, $array), 1);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal