I'm trying to pass an array value for a data attribute inside a php string but I'm getting the error (syntax error, unexpected 'event' (T_STRING), expecting ',' or ';')
echo '<div class="element-search" data-page-type="event" data-search-types="['event', 'person']">';