Recursive function to generate all binary strings formed by replacing each wildcard character by 0 or 1
< ? php function print1 ( $ str , $ index ) { if ( $ index == strlen ( $ str ) ) { echo $ str . " STRNEWLINE " ; return ; } if ( $ str [ $ index ] == ' ? ' ) {