Strict Standards: Non-static method Advanced_Permalinks::get() should not be called statically in /blog/wp-content/plugins/advanced-permalinks/advanced-permalinks.php on line 825

Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method GoogleSitemapGeneratorLoader::Enable() should not be called statically in /blog/wp-includes/plugin.php on line 123

Warning: call_user_func_array() expects parameter 2 to be array, null given in /blog/wp-includes/plugin.php on line 123

Strict Standards: Only variables should be assigned by reference in /blog/wp-includes/post.php on line 942
[PHP] Jak policzyć ile znaków ma tekst zawarty w zmiennej? » egrafik.pl
BAZA WIEDZY
KURSY
Bazy danych w PHP
Kurs AdvancedAJAX
Kurs ASP
Kurs ASP.NET
Kurs C++
Kurs CSS
Kurs HTML
Kurs HTML drugi
Kurs JavaScript
Kurs MySQL
Kurs PHP
Kurs RSS
Kurs XHTML
Obiekty DOM
MANUALE
CSS1 - W3C
DOM - w budowie
PHP 2005
PHP 2006
Wyrażenia regularne
SHOUTBOX
STAT
Online: 27 | UU: 625

Strict Standards: Resource ID#197 used as offset, casting to integer (197) in /forum2/db/mysql4.php on line 223

Strict Standards: Resource ID#197 used as offset, casting to integer (197) in /forum2/db/mysql4.php on line 224
[PHP] Jak policzyć ile znaków ma tekst zawarty w zmiennej?
15 czerwiec 2007

Strict Standards: Only variables should be assigned by reference in /blog/wp-includes/post.php on line 114

Strict Standards: Only variables should be assigned by reference in /blog/wp-includes/post.php on line 114

Strict Standards: Only variables should be assigned by reference in /blog/wp-includes/post.php on line 114

Strict Standards: Only variables should be assigned by reference in /blog/wp-includes/post.php on line 114

Strict Standards: Only variables should be assigned by reference in /blog/wp-includes/post.php on line 114

Strict Standards: Only variables should be assigned by reference in /blog/wp-includes/post.php on line 114

Strict Standards: Only variables should be assigned by reference in /blog/wp-includes/post.php on line 114

Strict Standards: Only variables should be assigned by reference in /blog/wp-includes/post.php on line 114

Deprecated: Function eregi() is deprecated in /blog/wp-content/plugins/tpbc.php on line 96

Aby policzyć ilość znaków w tekście zapisanym w danej zmiennej, należy zastosować bardzo krótki zapis:

Przykład:

Kod: php

<?php
  $tekst = "ile mam znaków";
    echo strlen($tekst);
?>

Jak się pewnie domyślacie wyświetlona zostanie liczba 14. Do znaków zaliczane są równiez spacje.

Autor: Adam Suchowski

Dodaj komentarz









 
 
| | | |
Copyright © 2006-2013 egrafik.pl | Kontakt | Reklama | Projekty domów
jocker