So i have this piece of code:
<?php $field['url'] = '<iframe src="http://xxx.xx/= **the_title();**" width="640" height="360" allowscriptaccess="always" allowfullscreen="true" scrolling="no" frameborder="0"></iframe>;' ?>
I need to put the_title();
outside the quotations, so PHP can read it. Is it even possible to put it outside two quotations?
Yes. This is called concatenation and is a fundamental part of string building in any language. In PHP this is accomplished with the .
concatenation operator.
"string etc ".some_func()." continuation of string"
Note you can use single or double quotes.
<?php
$title = the_title();
$field['url'] = "<iframe src='http://xxx.xx/=$title' width='640' height='360' allowscriptaccess='always' allowfullscreen='true' scrolling='no' frameborder='0'></iframe>;"
?>