Ok here is the code i got..
class htmlBasics {
function bold($text) {
echo "<b>$text</b>";
}
function italics($text) {
echo "<i>$text</i>";
}
}
$test = new htmlBasics;
$test->bold(italics("This is just a test"));
How would I call a function inside of another function when its inside of a class such as this? see where it says: $test->bold(italics("This is just a test"));
How would that work?