2015-01-31, 12:57 PM
2015-01-31, 01:42 PM
Is there a specific pattern you are searching the post for? Knowing what kind of condition you are trying to achieve will make it easier for us to help you.
2015-01-31, 07:51 PM
Considering you're talking about $post['message']:
Of course this may break MyCodes and stuff, so you'll have to add additional checks for that.
$l = my_strlen($post['message']);
$half = $l / 2;
$part1 = my_substr($post['message'], 0, $half);
$part2 = my_substr($post['message'], half);
$post['message'] = $part1.' I am in the middle '.$part2;
Of course this may break MyCodes and stuff, so you'll have to add additional checks for that.
2015-02-01, 11:59 AM
Thanks @dragonexpert,
@Destroy666 outstanding buddy! Big thanks! Oh yeah and +1
@Destroy666 outstanding buddy! Big thanks! Oh yeah and +1