<?php $id = '1--2--3'; var_dump(substr($id, 0, strrpos($id, "--")));
You have javascript disabled. You will not be able to edit any code.