在echo中间回显if语句

I have a code with checkbox like:

Echo "<p>Some text go here (I NEED TO PUT HERE CHECKBOX CHECKED FROM IF), here goes another text.</p>"

if( isset( $_POST['check'] ))
{
    if( count( $_POST['check'] ) > 0 )
    {
        echo "" . implode(", ", $_POST['check']);
    }

I need to put the if from checkbox array in the middle of my echo, theres a way?

Tks

If you assign the value to a variable, you can concetanate (ugh! this word...) it to one echo command.

if( isset( $_POST['check'] ))
{
    if( count( $_POST['check'] ) > 0 )
    {
        $var = implode(", ", $_POST['check']);
    } else {
        $var = "";
    }

echo "<p>Some text go here" . $var . ", here goes another text.</p>";

Edit

Added Mark's comment, as a more efficient way of the above echo command:

echo "<p>Some text go here", $var, ", here goes another text.</p>";