Ad

Error Unexpected ;;

- 1 answer

I can´t found my syntax error:

$params['title_header'] = '<a target="_blank" rel="nofollow noreferrer" target="_blank" rel="nofollow noreferrer" href="/product/'.str_slug($article_info->name.'/'.$article_info->article_id.'">'.$article_info->name.'</a> > MODELS';

Can you help me to find him?

I´m coding in a laravel controller.php file.

Ad

Answer

You don't have a close parenthesis after opening str_slug() after article_id.

$params['title_header'] = '<a target="_blank" rel="nofollow noreferrer" target="_blank" rel="nofollow noreferrer" href="/product/'.str_slug($article_info->name.'/'.$article_info->article_id).'">'.$article_info->name.'</a> > MODELS';
Ad
source: stackoverflow.com
Ad