Jump to content

need some help with word breaking...


Chris Val Kef

Recommended Posts

I can give you an example though you'll have to tailor it to how you want it...

[code]
<?php
$firstName = "Jack";
$lastName = "Brown";

echo $lastName.$firstName{0};
?>
[/code]

I can't recall if it's 0 or 1 but I believe it starts at 0.  The curly braces allow you to select one letter from a string by position within the string.

HTH

Dest

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.