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

  • Home
  • SEARCH
  • 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 6729829
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:20:12+00:00 2026-05-26T10:20:12+00:00

I am wanting to utilize the variable type comment feature in NetBeans for PHP,

  • 0

I am wanting to utilize the variable type comment feature in NetBeans for PHP, yet I’m having trouble deciding upon the type itself.

I’ve got the syntax down (my variable is named $clause):

/* @var $clause type */

But when it comes to replacing type with something, I’m unsure of what to use. I used gettype($clause) to determine the type of variable in question, which outputted string, yet there is no string option in the drop down list for the autocompletion of the comment in NetBeans.

Furthermore the options that are listed are foreign to me to say the least, and I don’t imagine a developer is expected to use gettype every time they need to determine the type of variable in use.

Could someone give me some advice on the type to use? Is it string as I determined, or is this a user defined type?

I noticed in the documentation here that the types given as examples are Book and Movie, which match the class name in the given examples. My case does not contain a class, but there is no example that resembles my case.

I appreciate any help you can provide me. Thank you.

  • 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-05-26T10:20:12+00:00Added an answer on May 26, 2026 at 10:20 am

    Uhm, I think you mean PHPDoc, no? It’s not a Netbeans feature…

    The data type doesn’t really matter in the long run, it only helps you designing self-documented code.

    Finally, if the $clause variable indeed contains a class name (most often a string), the DocBlock would look like:

    /**
     * @var $clause string Some class name.
     */
    

    Note that docblocks must start with a slash and two asterisks.

    The @var clause is in the format of “variable name”, “data type” and “description”.

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

Sidebar

Related Questions

I'm wanting to get the full value of a char[] variable in the VC6
I am wanting to utilize JSONP for a project with x-domain scripting but little
I've been wanting to build a shared library of which will utilize classes to
I'm wanting to store hashed passwords in MySQL, I'm using PHP: <?php $salt =
I'm wanting to assign a variable only it hasn't already been assigned. What's the
I am wanting to create a PHP loop to get all of the ids
I wanting to show a particular post type dependent on the page, so for
Wanting to implement authentication by client certificates I am experiencing some issues. First some
Wanting to integrate aspects of SharePoint into an existing website - rather than integrating
I wanting to show prices for my products in my online store. I'm currently

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.