#89 A Question on PHP If $time = ‘Monday at 12:33 - TopicsExpress



          

#89 A Question on PHP If $time = ‘Monday at 12:33 PM’; or $time = ‘Friday the 12th at 2:07 AM’; which code fragment outputs the hour (12 or 2, respectively)? A. preg_match(‘/S(d+):/’, $time, $matches); print $matches[1]; B. preg_match(‘/(w+)SatS(d+):d+/’, $time, $matches); print $matches[2]; C. preg_match(‘/s([a-zA-Z]+)s(w+)s(d+):d+/’, $time, $matches); print $matches[3]; D. preg_match(‘/s(d+)/’, $time, $matches); print $matches[1]; E. preg_match(‘/w+s(d+):d+/’, $time, $matches); print $matches[1];
Posted on: Tue, 17 Sep 2013 14:50:42 +0000

Trending Topics



Recently Viewed Topics




© 2015