답변 1개
채택된 답변
+20 포인트
2019-12-14 (토) 12:28:56
마지막 코멘트??? 질문이 모호해요.
일단 대충답변하면 아래와 같습니다.
Copy
$List_Comment_Array = array( '코멘트1', '코멘트2', '코멘트3' );
$last_comment_index = count( $List_Comment_Array ) - 1;
echo $List_Comment_Array[ $last_comment_index ]
// 또는
array_reverse( $List_Comment_Array );
echo $List_Comment_Array[0];
답변을 작성하려면 로그인이 필요합니다.