basically Im searching for the term ded within subject,
how come all i get is Array() when i run this
<?php
$subject = "dedfd";
$pattern = '/ded/';
preg_match($pattern, $subject, $matches, PREG_OFFSET_CAPTURE, 2);
print_r($matches);
?>
and then i tried to search for the letter d within subject
and i get
Array ( [0] => Array ( [0] => d [1] => 2 ) )
what does this mean ?
<?php
$subject = "dedfd";
$pattern = '/d/';
preg_match($pattern, $subject, $matches, PREG_OFFSET_CAPTURE, 2);
print_r($matches);
?>