Advertisement
Guest User

Untitled

a guest
Dec 3rd, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. <?php
  2. foreach ($paragraphs as $index => $paragraph) {
  3. if ( trim( $paragraph ) ) {
  4. $paragraphs[$index] .= $closing_p;
  5. }
  6.  
  7. $n = $index + 1;
  8. if ( $n == 3 ) {
  9. $ad = mp1_func('');
  10. $paragraphs[$index] .= $ad;
  11. }
  12.  
  13. if ( $n == 10 ) {
  14. $ad = mp2_func_legacy('');
  15. $paragraphs[$index] .= $ad;
  16. }
  17.  
  18. if ( $n == 18 ) {
  19. $ad = img_ad_func('');
  20. $paragraphs[$index] .= $ad;
  21. }
  22. }
  23.  
  24. $a = implode( '', $paragraphs );
  25.  
  26. echo $a;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement