Jump to content

how is this done please


redarrow

Recommended Posts

if there are more then 1 charecter the same get rid of one of them charecters cheers

 

 

bad example but you can see what iam trying.

<?php

$x="hello there i am reeedddaaarrrooowww";

$letters=array("a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","v","w","x","y","z");

$e=explode(' ',$x);

for($i=0; $i<count($x); $i++){

$y=implode(' ',$letters);

if($x[$i]==strlen($y)>2){

	$x[$i]-1;

	echo $x[$i];
}

}

?>

Link to comment
https://forums.phpfreaks.com/topic/61587-how-is-this-done-please/
Share on other sites

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.