Last active
December 18, 2015 15:59
-
-
Save prateeksachan/5808629 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$s = ''; | |
$s.= '<add>'; | |
for ($id = 1; $id <=1000; $id++){ | |
$s.= '<doc>'; | |
$s.= '<field name="id">' . $id . '</field>'; | |
$s.= '<field name="courseid" update="set">2</field>'; | |
$s.= '</doc>'; | |
} | |
$s.= '</add>'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment