I have some PHP variables whose names are directly linked to the function they contain.
Is there anyway of automating the creation of these variables, so that I can ALL variables 00-200 available for use?
This is what I'm doing now...
$regdays00 = is_user_reg_matured( 00 );
$regdays02 = is_user_reg_matured( 02 );
$regdays05 = is_user_reg_matured( 05 );
$regdays08 = is_user_reg_matured( 08 );
I'd love to be able to go:
small function that creates all $redays000 - $regdays200
if ( $regdays162) { "This has now used is_user_reg_matured(162)" }
Thank you!
PHP arrayandPHP forand read the manual page. These are some basic stuff so make sure you really understand them :) Your code will be way better that way.