<?php $str = 'one|two|three|four|eeee|tttt|gggg'; // positive limit print_r(explode('|', $str, 4)); // negative limit (since PHP 5.1) print_r(explode('|', $str, -2));
You have javascript disabled. You will not be able to edit any code.