<?php $str = "Hello world. It's a beautiful day."; print_r (explode(" ",$str)); ?>
Pro tip: use ```triple backticks around text``` to write in code fences