0
Illegal String Offset
My arrays are defined as `<?php if ( $active_tabs['latest'] ) { ?><li class="active"><a href="#latest-posts-<?php echo $id; ?>" data-toggle="tab"><?php _e('Latest', 'radium'); ?></a></li><?php } ?> <?php if ( $active_tabs['popular'] ) { ?><li><a href="#popular-posts-<?php echo $id; ?>" data-toggle="tab"><?php _e('Popular', 'radium'); ?></a></li><?php } ?> <?php if ( $active_tabs['featured'] ) { ?><li><a href="#featured-posts-<?php echo $id; ?>" data-toggle="tab"><?php _e('Featured', 'radium'); ?></a></li><?php } ?> but returns an Illegal String Offset on this line <?php if ( $active_tabs['latest'] ) { ?>` Could anyone explain why?
9 Respostas
+ 1
would you please share your code on Code Section and place the link here?
+ 1
like this.
+ 1
here on SoloLearn.
+ 1
What are you trying to achieve here?
+ 1
$active_tabs['latest'] it returns?
0
Do you mean any of the code sharing sites? Like JS Fiddle etc?
0
Somewhat cant; https://codepen.io/anon/pen/ywMrJQ
0
it returns illegal string offset