End function |
[eluser]jav99[/eluser]
Hey there, am wondering: is it possible to use if(end) using the code igniter way to write php? am interested that instead of writing this: Code: <?php if (end($item) == $item_row) i could use the code igniter way of doing things like this Code: <?php if (end($item) == $item_row):?> is this possible?
[eluser]cahva[/eluser]
This is not CI specific and is supported natively in PHP, so sure you can use it.
[eluser]jav99[/eluser]
[quote author="cahva" date="1263596444"]This is not CI specific and is supported natively in PHP, so sure you can use it.[/quote] thanks for ur reply, what i wanted to know is that if there was a CI equivalent, since the html code is cleaner using the CI way using simple CI if statements.
[eluser]cahva[/eluser]
Sorry, but I dont understand. CI is PHP and you can build the html code the same way. You can get out of PHP anytime with ?> and insert html between and then start it again later. Is this what you were after?
[eluser]jav99[/eluser]
[quote author="cahva" date="1263597856"]Sorry, but I dont understand. CI is PHP and you can build the html code the same way. You can get out of PHP anytime with ?> and insert html between and then start it again later. Is this what you were after?[/quote] using if statements in CI u get a very elegant coding layout Code: <? if ---?> very elegant and easy to read and understand.
[eluser]cahva[/eluser]
Yes, and I told you its not CI specific. You can do that in normal PHP script no problemo. |
Welcome Guest, Not a member yet? Register Sign In |