Solved

php explode in vb.net

Posted on 2013-01-20
2
352 Views
Last Modified: 2013-01-21
hello there,
I would like to know how can you write these 3 lines of code into vb.net

    $secret = explode(chr(3),$result);
    $secret = explode(chr(1),$secret[2]);
    $secret = $secret[0];

Open in new window

0
Comment
Question by:XK8ER
2 Comments
 
LVL 14

Expert Comment

by:brendanmeyer
ID: 38799661
Hey I'm not 100% if this would work, as I usually code in C#

but it could be a starting

Dim secreta() As String = Split(result, Chr(3))
secreta = Split(secreta(2), Chr(1))
secret = secret(0)

Open in new window

0
 
LVL 2

Accepted Solution

by:
tap52384 earned 500 total points
ID: 38800142
In PHP:

explode(delimiter, string, [limit]);

$secret = explode(chr(3),$result);
$secret = explode(chr(1),$secret[2]);
$secret = $secret[0];

In VB:

Dim secret as String() = result.split(Chr(3))
secret = secret(2).split(Chr(1))

Open in new window


Don't see the need for the 3rd line.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now