Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php]Usuwanie znaku
-$liwa-
post
Post #1





Goście







Jak się usuwa znak przed kursorem? O ile się da ofc (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Athlan
post
Post #2





Grupa: Developerzy
Postów: 823
Pomógł: 12
Dołączył: 18.12.2005

Ostrzeżenie: (0%)
-----


Może mu chodzi o usówaie ostatniej litery ze stringa (IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif)

  1. <?php
  2. $string = 'abcdefgh';
  3.  
  4. $zmienna = substr($string, 0, (strlen($string) - 1));
  5.  
  6. echo $string; // wyświetli abcdefg :)
  7. ?>


pozdro (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif)

ps. albo backspacem ;p
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 13.10.2025 - 11:25