"함수 substrAfter()"의 두 판 사이의 차이

잔글 (Jmnote 사용자가 함수 substr after 문서를 함수 substr after() 문서로 옮겼습니다)
(차이 없음)

2016년 4월 22일 (금) 18:08 판


1 PHP

function substr_after($needle, $haystack) { return substr( strchr($haystack,$needle), strlen($needle) ); }

echo substr_after('ll', 'hello world');
echo substr_after('l', 'hello world');
echo substr_after('x', 'hello world'); // bool(false)
# o world
# lo world
#

2 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}