Author | Post | |||
moose![]() ![]() ![]() ![]() ![]() ![]() |
Hi, ![]() can anyone post the text of the declaration of independence beale used? I saw ![]() but it doesn't fit because of the letters... I used the following to test it: Beale2 ct: 115, 73, 24, 807, 37, 52, 49, 17, 31, 62 Beale2 pt: I HAVE DEPOS but i dont get this result with my programm: <? $text="The declaration of independence"; $ct="115, 73, 24, 807, 37, 52, 49, 17, 31, 62"; //word splitting $text= str_replace"\n", ' ', $text); $text= preg_replace("/\s+/"); $a_text = explode(" ", $text); //getting each single number $a_nr = explode(',', $ct); foreach($a_nr AS $nr){ $pt .= substring($a_text[$nr], 0, 1); } echo $pt; ?> edit: got my mistake ... you have to add $text=str_replace('-',' ', $text); |
|||
Edited by moose on 09.05.2007 15:03:17 | ||||
![]() |
|