-
<?php //문자열 자르기 (explode) $String = "apple;banana;cat;dog"; //문자열 자르기 : 배열로 저장된다. $strTok =explode(';' , $String); //배열 크기 가져오기 $cnt = count($strTok); for($i = 0 ; $i < $cnt ; $i++){ echo($strTok[$i] . "<br/>"); } ?>
'PHP' 카테고리의 다른 글
xml파일 일기 (0) 2020.09.03 url경로로 이미지 읽어드리기 (0) 2020.07.15 배열 if문 checed (0) 2020.07.15 sql where 구문만들기 (0) 2020.07.15 레코드 중복 그룹출력 (0) 2020.07.15