Hello, I'm having trouble with the regular expression, and the function returns 3 positions in the array all empty;
preg_match_all('/<a data-role\="sku\" data-sku-id\="'.$the_new_id[2].'\" id\="sku\-3\-'.$the_new_id[2].'\" href\="javascript:void(0)\">(.*)<\a>/i', $page_content, $sku_3_a);
array(3) {
[0]=>
array(0) {
}
[1]=>
array(0) {
}
[2]=>
array(0) {
}