Sorry for not using the right terminology, but given how basic my PHP level is, perhaps you will not mind so much.
A function for a plugin I am using allows arguments in order to selectively echo content:
<?php phpquote(argumentstring); ?>
An example of the argument string is e.g. auto_refresh=0&tags=a,b,c
I had always assumed it would be possible to use an array to build up a 'string' e.g. something like
<?php $arg=array( 'auto_refresh' => '0', 'tags' => 'a,b,c' );
phpquote($arg); ?>
And was therefore thinking I could bring in other content from another field e.g.
<?php
$fieldcontent = get_field("field_content");
$arg=array( 'auto_refresh' => '0', 'tags' => $fieldcontent );
phpquote($arg); ?>
However, this does not seem to work and so my two questions are:
- Is it possible to use an array to build such an argument string? Or does this depend on the plugin?
- If so, is it possible to bring in content from elsewhere as the example above?
Thanks in advance. I appreciate this may seem like a really basic question with incorrect terminology (sorry!) so hope it makes sense to the experts.