[ create a new paste ] login | about

Link: http://codepad.org/8TCvii9l    [ raw code | output | fork ]

PHP, pasted on Oct 20:
1
2
3
4
5
6
7
8
9
10
11
<?php

$items=array();
$items['test']="hello";
$items['Packaged asdasdsad']="works";

foreach($items as $key=>$value)
{
      if(stristr($key,'Packaged')!==FALSE)
         echo "Matching key is: $key";
}


Output:
1
Matching key is: Packaged asdasdsad


Create a new paste based on this one


Comments: