![](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FbexdoF%2FbtqCz5YPlhn%2F7Dy9qopUqHV75RFIyXy8ck%2Fimg.png)
PHP Warning: Division by zero in 주로 값이 0인 변수를 가지고 수식계산을 할 때 나타난다. 해결방법은 값이 0일때는 계산식에 들어가지 않게 분기처리 해준다. 예시) // Bad; $test = 0; $test2 = $test / 2; // Good! if($test != 0){ $test2 = $test / 2; }
페이지 로딩중입니다. 잠시 기다려주세요!
도움이 되셨다면 구독 부탁합니다!