<?php function post_title_only() { $str = "Hello there folks, this is a long one"; if (strlen($str) <15) { $title_only = 'regular'; } elseif (strlen($str) >= 15) { $title_only = 'posttitleonly'; } echo $title_only; } ?>
You have javascript disabled. You will not be able to edit any code.