Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8082509
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T17:07:35+00:00 2026-06-05T17:07:35+00:00

PHP has some pretty inconsistent parameters for functions (e.g. sometimes first haystack , then

  • 0

PHP has some pretty inconsistent parameters for functions (e.g. sometimes first haystack, then needle, and sometimes the other way around). I’d like vim to somehow hint at what parameters are expected. I mostly care for integrated PHP functions, not for project-specific functions. Is this possible to set up / configure?

My idea is that I type:

strpos(

and vim tells notifies me it expects $haystack, $needle.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T17:07:37+00:00Added an answer on June 5, 2026 at 5:07 pm

    What version of Vim do you use?

    Without any additional plugin or configuration, hitting <C-x><C-o> after typing a couple of letters of a builtin function you are supposed to get the omnicompletion menu and a small preview window showing the signature of the currently selected function. See :help compl-omni and :help ft-php-omni

    With strpos(, you should get:

    strpos(string haystack, mixed needle [, int offset] | int
    

    You might want to try this slightly better omnicompletion script for PHP.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a php file which has some variables like $name1, $name2... How can
I am working on a PHP-Mysql based website which has some large lists to
A long shot but here's hoping someone has some experience coding PHP hooks for
PHP 5.3 has been released some time ago and the developers tried to keep
I am developing an app in PHP and at some points the app has
First Some Background I'm planning out the architecture for a new PHP web application
I'm pretty new to Perl and trying to convert some PHP code to Perl.
I have a pretty reasonable amount of experience in PHP (around ~5 years of
I'm new to Drupal but I've found my way around it pretty easily. There's
One of my sites has some very complicated sorting functions, on top of a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.