Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

printing certain characters

0 views
Skip to first unread message

buffchazen

unread,
Oct 1, 2003, 6:02:53 PM10/1/03
to
how do you print only certain characters in a string using php? for
example, i want to print only the first and fourth characters in a word.

-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----

Familie Horsch Nieuws (Zonnet)

unread,
Sep 10, 2004, 12:34:38 PM9/10/04
to
Here you find some functions you can use:

function print_string_pos_1_4($string)
{
$retstr = $string[0] . $string[3];
return $retstr;
}

function print_string_pos_choice($string, x, y)
{
$retstr = $string[x-1] . $string[y-1];
return $retstr;
}
"buffchazen" <ge...@heavenlyfathersplan.com> schreef in bericht
news:3f7b4f92$1...@corp.newsgroups.com...

0 new messages