Solved

php explode in vb.net

Posted on 2013-01-20
2
361 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

830 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