php function question /syntax

I have a function which name is: function replaceForText

I would like to apply this function on the  ->>>>> tagValue='{$attorneysStuff['bizName']}'

How can I do this, I tried several time but it seems I can't find out the correct syntax for this.
this is the complete code where the function replaceForText should be applied on the variable bizName:

<?php  print tubepressGallery("mode='tag' tagValue='{$attorneysStuff['bizName']}' ajaxPagination='true' ?>
seoptiAsked:
Who is Participating?
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
ok
<?php  print tubepressGallery("mode='tag' tagValue='" .replaceForText($attorneysStuff['bizName'])."' ajaxPagination='true' ?>

Open in new window

0
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
this should do:
<?php  print tubepressGallery("mode='tag' tagValue='{replaceForText($attorneysStuff['bizName'])}' ajaxPagination='true' ?>

Open in new window

0
 
seoptiAuthor Commented:
Thanks, but it seems not to work, I'm getting this error:

PHP Parse error:  syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.