Mathias Brodala: PHP prüfung, ob Werte in einem Array vorhanden sind

Beitrag lesen

Hallo Gabriel.

$buch_array = array(
  'text1' => 1,
  'text2' => 2,
  'text 2' => 2,
  'text3' => 3
)

Nun möchte ich überprüfen, ob 'text2' im Array vorhanden ist

Du suchst array_key_exists.

Einen schönen Dienstag noch.

Gruß, Mathias

--
ie:% fl:| br:< va:) ls:& fo:) rl:( n4:~ ss:) de:] js:| mo:| zu:)
debian/rules