<?php
function beautiful($o) {
return substr_count($o, 010);
}

print_r (beautiful(0100100100100100111010101001011010); //output- 6
by Gvanca Gharibashvili
2 years ago
PHP
Object Oriented PHP Tutorial
0
Pro tip: use ```triple backticks around text``` to write in code fences