Repeating piece of code in php
<p>(look also at my <a href="http://stackoverflow.com/questions/1338349/what-to-use-if-i-want-to-repeat-set-of-parameters-in-php-libcurl-session">previous question</a>)</p>

<p>I'm trying to repeat set of curlopt parameters. My script will do more thing that one - login, do something, do something else, finish. I would like some options to be the same in all steps. I was thinking about using curl copy handle or curl setopt array, but do i really need these? Isn't there php construct for repeating piece of code (so when you change it in one place changes are applied in all places in code) that would work in my case?</p>
