<?php $str = '1001 1100 0100 1101'; $encoded = implode(array_map(function($ch) { return $ch === ' ' ? ' ' : random_int(0, 1);}, str_split($str))); echo $encoded;
You have javascript disabled. You will not be able to edit any code.