Menu
””
<?php
$string = ‘url.com/?tbl=links&col=keyword&search=cars&page=1’;
sscanf($string,’tbl=%s,col=%s,search=%s,page=%d’,$tbl,$col,$Search,$page);
echo ‘tbl :’ .$tbl; echo ‘<br>’;
echo ‘col :’ .$col; echo ‘<br>’;
echo ‘search :’ .$Search; echo ‘<br>’;
echo ‘page :’ .$page; echo ‘<br>’;
?>
””
People,
Why sscanf only deal with 2 here %tbl and %col and not the other two ?
I can only see the first two cars echoed. The last two are empty!
Why ?