GithubHelp home page GithubHelp logo

Comments (4)

henriquemoody avatar henriquemoody commented on May 7, 2024

I have created a branch "files" (see #102) and I'm working on this branch to implements all the is_* about files:

For now, we have:

  • is_dir();
  • is_file();
  • file_exists();
  • is_link();
  • is_readable();
  • is_uploaded_file();
  • is_writeable();

I have to do:

  • is_executable();

I hope today I can finish this.

from validation.

nickl- avatar nickl- commented on May 7, 2024

Could you link to documentation please?

This issue was specifically in reference to Variable handling Functions

Listed here with tics for those which are correctly implemented, a another name where name deviation apply or if another method is used to accomplish the same. If nothing was mentioned this may not be implemented yet.

  • empty — Determine whether a variable is empty
    NotEmpty
  • is_array — Finds whether a variable is an array
    Arr
  • ✓ is_bool — Finds out whether a variable is a boolean
  • is_callable — Verify that the contents of a variable can be called as a function
    Callback
  • ✓ is_float — Finds whether the type of a variable is float
  • is_double — Alias of is_float
  • is_real — Alias of is_float
  • is_int — Find whether the type of a variable is integer
    Int uses is_numeric
  • is_integer — Alias of is_int
  • is_long — Alias of is_int
  • is_null — Finds whether a variable is NULL
    NullValue
  • ✓ is_numeric — Finds whether a variable is a number or a numeric string
  • ✓ is_object — Finds whether a variable is an object
  • is_resource — Finds whether a variable is a resource
  • is_scalar — Finds whether a variable is a scalar
  • ✓ is_string — Find whether the type of a variable is string
  • isset — Determine if a variable is set and is not NULL
    NotEmpty

There exists several discrepancies where different naming was used or the correct name but alternative methods were used to accomplish the same.

The complete list of is* functions would probably looks like this as of date:

  • is_a
  • ✓ is_array
  • ✓ is_bool
  • ✓ is_callable
  • ✓ is_dir
  • ✓ is_double
  • ✓ is_executable
  • ✓ is_file
  • is_finite
  • ✓ is_float
  • is_infinite
  • is_int
  • is_integer
  • ✓ is_link
  • is_long
  • is_nan
  • is_null
  • is_numeric
  • is_object
  • ✓ is_readable
  • ✓ is_real
  • is_resource
  • is_scalar
  • is_soap_fault
  • ✓ is_string
  • is_subclass_of
  • ✓ is_uploaded_file
  • ✓ is_writable
  • ✓ is_writeable

from validation.

leonnleite avatar leonnleite commented on May 7, 2024

this issue have 10 months, it's up to date? I'll get some

from validation.

nickl- avatar nickl- commented on May 7, 2024

@leonnleite Still up for grabs. If you can fill in the blanks for us that would be awesome!

Shout if you need a hand with anything...

Have fun!

from validation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.