<?php function beautiful($o) { return substr_count($o, 010); } print_r (beautiful(0100100100100100111010101001011010); //output- 6
Pro tip: use ```triple backticks around text``` to write in code fences