Hello I am trying to echo 14 different array s and shuffle the images so they are generated randomly inside of a preg_Replace function. Can anyone help me with this?
<?php
//islamic
$islamicart_array = array( /images/islamicart/IA.jpg , /images/islamicart/IS(2).jpg , /images/islamicart/IS(3).jpg , /images/islamicart/IS(4).jpg , /images/islamicart/IS(5).jpg , /images/islamicart/IS(6).jpg , /images/islamicart/IS(7).jpg , /images/islamicart/IS(8).jpg , /images/islamicart/IS(9).jpg , /images/islamicart/IS(10).jpg );
//pme-postmodernism/expressionism
$pme_array = array( /images/pme/E.jpg , /images/pme/E(2).jpg , /images/pme/E(3).jpg , /images/pme/E(3).jpg , /images/pme/E(4).jpg );
//http://www.w3schools.com/php/func_filesystem_file_get_contents.asp
$myfile = file_get_contents( http://www.guardiannews.com );
$myfile = preg_replace( /<a href=".*?" / , <a target="_top" href="/course/s12/projects/me/" , $myfile);
echo($myfile);
?>
因此,我正试图在另一页随机重复图像。