How can I get a certain array value from get_the_terms? I tried doing $var = get_the_terms($post->ID,taxonomy); then calling $var->string or $var['string'] .. neither work
How would I have string be an array of strings in this example?: var string = "highlight this"; var message = "please highlight this"; var rg = new RegExp('('+string+')', 'g'); message = message.rep
Is there a function or idiom to return the first non-null value from an array? What I really need, I think, is an aggregating coalesce; array_accum + something to process the array will work, though.
Is it possible to do the reverse of IN? say, you have a field with A,B,C and want to search to see if your variable X (which equals 3) is in that field's array