PHP explode equivalent for VB - returning an array from string with unique separators

Posted on 2006-04-06
Last Modified: 2013-12-25
Does anybody have a subsitute for PHP explode function in VB? I suppose it would have to be written from scratch.

To elaborate:


a = FuncExplode(x)


The array variable a, I suppose, could be also passed to a function as ByRef variable.

Suggestions will be most appreciated. Thanks.
Question by:saulius88
    LVL 69

    Accepted Solution

    Hi saulius88,

    Starting with VB6, you have the Split function that returns an array from a string


    Author Comment

    Simple.. Can't believe I was writing functions by hand for that :)

    Thanks a bunch.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
    Article by: Martin
    Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
    Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
    Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

    794 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

    16 Experts available now in Live!

    Get 1:1 Help Now