We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
This function querys the database for all the articles which are about one of the URLs in the given array and returns you an array of Article objects.
array Article::find_by_array( array $urls )
urls: Array of urls which you want the articles of.
Returns an array of articles which have these urls.
Code:
<?php $urls = array( "http://www.google.com", "http://www.rpi.edu/" ); $articles = Article::find_by_array( $urls ); echo $articles[0]->url; ?>
Outputs:
http://www.google.com/