Code:
static int [U]CountChars[/U](string value) { int result = 0; bool lastWasSpace = false; foreach (char c in value) { if (char.IsWhiteSpace(c)) { [I]// A. // Only count sequential spaces one time.[/I] if (lastWasSpace == false) { result++; } lastWasSpace = true; } else { [I]// B. // Count other characters every time.[/I] result++; lastWasSpace = false; } } return result; }
elazz apith ava 






). But the salary depends on the company and your skills. So if you only learn php, you won't get much far in terms of the salary.
. mama nam asama php