<?php
var_dump(substr_count('aaa', 'a', 0, 0));
var_dump(substr_count('aaa', 'a', 0, 1));
- Output for 7.1.3 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.7
- int(0)
int(1)
- Output for 7.1.0 - 7.1.2
- int(3)
int(1)
- Output for 7.0.0 - 7.0.20
- Warning: substr_count(): Length should be greater than 0 in /in/f0Rr6 on line 3
bool(false)
int(1)
preferences:
133.37 ms | 401 KiB | 171 Q