Just a quick newbie PHP syntax question.
I have a variable, let's call it $tabs
which always contains a string of numbers separated by commas, like so: 24,35,43,21
I also have a variable that's an array:
$args = array('post_type' => 'page', 'post__in' => array(27,19,29), 'order' => 'ASC');
That's of course WordPress. What I need to do, is place the content of the $tabs
variable (numbers) where the numbers inside the array are. I'm rather new to PHP, only understand how to modify some things, but this I can't figure out, no idea how the syntax for it should go.
Anyone able to help? Thanks.