When $s="/home/abu-jeib/www/teaching/Fall_06/207/a.php":
The elements of $ar when $ar = split("/home/abu-jeib/www/",$s,2) are:
$ar[0] = ""
$ar[1] = "teaching/Fall_06/207/a.php"
=======================
The elements of $ar when $ar = explode("/home/abu-jeib/www/",$s,2) are:
$ar[0] = ""
$ar[1] = "teaching/Fall_06/207/a.php"
=======================
When $s = "This iS a sgood thing":
The elements of $ar when $ar = explode(" ",$s):
$ar[0] = "This"
$ar[1] = "iS"
$ar[2] = "a"
$ar[3] = "sgood"
$ar[4] = " thing"
===============
The elements of $ar when $ar = explode("s",$s):
$ar[0] = "Thi"
$ar[1] = " iS a "
$ar[2] = "good thing"
===============
When $s = "ab,cde,fg":
The elements of $ar when $ar = explode(',',$s) are:
$ar[0] = "ab"
$ar[1] = "cde"
$ar[2] = "fg"
===============
When $ar is as above:
$a in $a = implode($ar) is:
$a = "abcdefg"
===============
When $ar is as above:
$a in $a = implode($ar,",") is:
$a = "ab,cde,fg"
===============
When $s = "ab,cde,fg", the elements of $ar when $ar = explode(",",$s,2) are:
$ar[0] = "ab"
$ar[1] = "cde,fg"
===============
When $s = "ab,cde;fg,hi,jk;lm=n", the elements of $ar when $ar = split(",|;|=",$s), are:
$ar[0] = "ab"
$ar[1] = "cde"
$ar[2] = "fg"
$ar[3] = "hi"
$ar[4] = "jk"
$ar[5] = "lm"
$ar[6] = "n"
===========HERE ====
When $s = "abu-jeib@cs.fredonia.edu", the elements of $ar when $ar = split("\@|\.",$s), are:
$ar[0] = "abu-jeib"
$ar[1] = "cs"
$ar[2] = "fredonia"
$ar[3] = "edu"
================
When $s = "abu-jeib@cs.fredonia.edu", the elements of $ar when $ar = explode("\@|\.",$s), are:
$ar[0] = "abu-jeib@cs.fredonia.edu"
===============
===========HERE ====
When $s = "abu-jeib@cs.fredonia.edu", the elements of $ar when $ar = split("@|.",$s), are:
$ar[0] = ""
$ar[1] = ""
$ar[2] = ""
$ar[3] = ""
$ar[4] = ""
$ar[5] = ""
$ar[6] = ""
$ar[7] = ""
$ar[8] = ""
$ar[9] = ""
$ar[10] = ""
$ar[11] = ""
$ar[12] = ""
$ar[13] = ""
$ar[14] = ""
$ar[15] = ""
$ar[16] = ""
$ar[17] = ""
$ar[18] = ""
$ar[19] = ""
$ar[20] = ""
$ar[21] = ""
$ar[22] = ""
$ar[23] = ""
$ar[24] = ""
================
When $s = "abu-jeib@cs.fredonia.edu", the elements of $ar when $ar = explode("@|.",$s), are:
$ar[0] = "abu-jeib@cs.fredonia.edu"
===============
When $s = "abu-jeib@cs.fredonia.edu", the elements of $ar when $ar = split("\@|\.",$s,2), are:
$ar[0] = "abu-jeib"
$ar[1] = "cs.fredonia.edu"
===============
When $s="zAbcabdababyAb", the value of:
strpos($s,"ab"):
4
strpos($s,"ab",5):
7
stripos($s,"ab"):
1
strrpos($s,"ab"):
9
strripos($s,"ab"):
12