"PHP array values()"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))
4번째 줄: 4번째 줄:
*  배열에서 모든 값들과 숫자로된 인덱스의 배열을 반환함
*  배열에서 모든 값들과 숫자로된 인덱스의 배열을 반환함


<source lang='php' run>
<syntaxhighlight lang='php' run>
$arr = ["size"=>"XL", "color"=>"gold"];
$arr = ["size"=>"XL", "color"=>"gold"];
print_r(array_values($arr));
print_r(array_values($arr));
</source>
</syntaxhighlight>


==같이 보기==
==같이 보기==

2020년 11월 2일 (월) 02:57 판

1 개요

PHP array_values()
  • 배열에서 모든 값들과 숫자로된 인덱스의 배열을 반환함
$arr = ["size"=>"XL", "color"=>"gold"];
print_r(array_values($arr));

2 같이 보기

3 참고

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