repo.or.cz
/
hiphop-php.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
import zend standard tests
[hiphop-php.git]
/
hphp
/
test
/
zend
/
good
/
ext-standard-strings
/
count_chars.php
blob
7888c50b9f9093fc1b63363ff05f43807a851a09
1
<
?php
2
$s
=
"het leven is net erwtensoep - je kunt er geen touw aan vastknopen"
;
3
for
(
$i
=
0
;
$i
<
3
;
$i
++
) {
4
echo
implode
(
count_chars
(
$s
,
$i
)).
"
\n
"
;
5
}
6
echo
$a
=
count_chars
(
$s
,
3
),
"
\n
"
;
7
echo
(
int
)
strlen
(
count_chars
(
$s
,
4
)) ==
256
-
strlen
(
$a
),
"
\n
"
;
8
9
?
>