- print_r: documentation ( source)
- preg_match_all: documentation ( source)
<?php
$app_filename = "AntivirusSecurity_02_cb-508164-ce_ac8a0e5e-35f8-4c7b-b591-7e28cab94b4e.apk";
$click_id_fence_beginning = 'cb-';
$click_id_fence_end = '-ce';
preg_match_all("^\cb-([0-9]*?)\-ce^",$app_filename,$fields, PREG_PATTERN_ORDER);
print_r($fields);