Hi am trying to figure out how to use the strolower function and strtolower + str_replace function with the following code – <?php echo get_the_author_meta('custom_field_35', $user->ID); ?>
This is what I have so far but it’s not working –
<?php
$str = "echo get_the_author_meta('custom_field_35', $user->ID);";
$str = strtolower($str);
echo $str; // Prints mary had a little lamb and she loved it so
?>
<?php $get_the_author_meta('custom_field_36', $user->ID) = strtolower(str_replace(",", "",$get_the_author_meta('custom_field_35', $user->ID))); ?>
How can I use strtolower and str_replace with get_the_author_meta?
Ok looks like I did not need to go back to learn basic PHP syntax rules, I was able to figure it out myself.
In case anyone else wants to know how I did it –