DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PHP
php find first occurrence in string
#You can use the strpos() function
$cheese
=
"cheese"
;
strpos
(
$cheese
,
'h'
)
;
#Output: 1
PREVIOUS
NEXT
Tagged:
#php
#find
#occurrence
#string
ADD COMMENT
Topic
COMMENT
Name
3+3 =
Submit