Hello, if I have this code:
foreach (Char c in myString.ToLowerInvariant())
{ /* code */ }
How many times will myString.ToLowerInvariant() get called? Once (which I assume) or multiple times?
Thank you
...
i have two foreach loop to display some data,
but i want to use a single foreach on basis of database result.
means if there is any row returns from database then
forach($first as $fk=>$fv) should execute otherwise
foreach($other as $ok) should execute.
i m unsing below ternary operator which gives parse error
$n=$db->numRows($task...