your code could look like this:
<?php
$sss = the_title('','',false);
$small = $sss . '<br />';
$big = $sss;
if (strlen($sss)<43) echo $small;
else echo $big;
?>
this $small= $sss . '<br />';
should add a linebreak to the string that contains the short title;
the '<p/>'
is not a valid html or other code.
concatenate strings:
https://php.net/manual/en/language.operators.string.php
return
will not print anything, it is for use with functions:
https://php.net/manual/en/function.return.php
use echo
to output things to the screen:
https://php.net/manual/en/function.echo.php
edit: just saw your last post;
well done, your code should work.
it is actually making good use of the wordpress template tag ‘the_title()’
you could just replace <p/>
with <br />
to make it more valid html.