$post['field18'] = substr($post['field18'], 0, 7); // If you want to add the trailing dots then use the line below instead:$post['field18'] = substr($post['field18'], 0, 7) . '...';