Reputation:
I want to change color of First character of each word in php like
Example Stack
here i want to change color of 'E' of example and 'S' of Stack to BLUE.
i tried this
foreach($chars as $char)
$regexp .= $char . '[a-z0-9]+ ';
$regexp = '^' . rtrim($regexp, ' ') . '$';
$req = "SELECT loc_name "
."FROM table "
." WHERE loc_name REGEXP '$regexp'";
$query = mysql_query($req);
while($row = mysql_fetch_array($query))
{
$results[] = array('label' => $row['loc_name']);
}
Upvotes: 0
Views: 3271