<?php $string = "In My Cart : 11 items"; var_export(preg_replace('/\D*(\d+).*/', '$1', $string));
You have javascript disabled. You will not be able to edit any code.