pls i need the different betwwen Vb.net and PHP looking in the are i listed
Area Visual Basic .Net PHP
(1)Variable definitions
(2)Loops
(3)Conditions
(4)File handling

Recommended Answers

All 3 Replies

(1)
PHP has no real definition, ie: var $a_var;.
In VB.NET you must define what the variable will contain, ie:
Dim a_var As Integer
Dim another_var As String

(2)
PHP uses the C syntax for iterations:
for (var $i = 0; $i < 10; $i++)
{ }
while ($a_var < 10)
{ }

VB.NET:
For i As Integer = 0 To 10
Next
While a_var <= 10
End While

(3)
PHP (again, C syntax):
if ($a_var == $another_var)
{ }
else
{ }

VB.NET:
If a_var = another_var Then
Else
End If

(4)
PHP:
$file = fopen(<file to open>,"r"|"r+"|"w"|"w+"|"a"|"a+"|"x"|"x+");

VB.NET:
Many many ways of manipulating files.
Have a look at the System.IO namespace.
There's the classes File, FileStream, StreamReader, Stream and FileInfo among others.

pls i need the different betwwen Vb.net and PHP looking in the are i listed
Area Visual Basic .Net PHP
(1)Variable definitions
(2)Loops
(3)Conditions
(4)File handling

thanks for your help. I found the anuswer useful

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.