Misplaced Pages

Talk:PHP: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Browse history interactively← Previous editNext edit →Content deleted Content addedVisualWikitext
Revision as of 11:04, 10 March 2021 editSineBot (talk | contribs)Bots2,555,318 editsm Signing comment by SimonedsouzaMic - "Centralized Email Signature for Office 365: new section"Tag: Reverted← Previous edit Revision as of 11:09, 10 March 2021 edit undoJmccormac (talk | contribs)Extended confirmed users5,213 edits Reverting to last known good version to remove spamTag: Manual revertNext edit →
Line 97: Line 97:
</syntaxhighlight> </syntaxhighlight>
] (]) 17:10, 25 January 2021 (UTC) ] (]) 17:10, 25 January 2021 (UTC)

== Centralized Email Signature for Office 365 ==

E-mail signature plays a vital role in company branding. An email signature with well design and professional look greatly helps to impress the the recipient.
A centralized email signature management is useful to control the email signature for all the employees at one place. Sigsync Office 365 Email Signature service is the best option to create the company wide Office 365 email signature

Allows creating and controlling email signatures for teams and company at one place.
Adds signatures based on rules, this avoids adding signature in each and every device used to send mails or to change in multiple devices when required.
Sigsync Email Signatures for Office 365 comes with various predefined templates and retrieves the details from Azure AD and inserts in the email signature
Adds the signatures under reply emails, forward emails, sent Items, etc.
Key features
• Centralized, secure Office 365 email signature service
• Reliable and flexible email signature solution
• Adds Email signature across all mail clients and devices
• Provides various predefined signature templates
• Full control on the signature layout
• Supports OneClick survey and web analytics. <!-- Template:Unsigned --><span class="autosigned" style="font-size:85%;">—&nbsp;Preceding ] comment added by ] (] • ]) 11:03, 10 March 2021 (UTC)</span> <!--Autosigned by SineBot-->

Revision as of 11:09, 10 March 2021

Skip to table of contents
This is the talk page for discussing improvements to the PHP article.
This is not a forum for general discussion of the article's subject.
Article policies
Find sources: Google (books · news · scholar · free images · WP refs· FENS · JSTOR · TWL

Template:Vital article

Good articlePHP has been listed as one of the Engineering and technology good articles under the good article criteria. If you can improve it further, please do so. If it no longer meets these criteria, you can reassess it.
Article milestones
DateProcessResult
February 23, 2008Peer reviewReviewed
March 25, 2008Peer reviewReviewed
April 1, 2008Good article nomineeListed
Current status: Good article
This article has not yet been rated on Misplaced Pages's content assessment scale.
It is of interest to the following WikiProjects:
Please add the quality rating to the {{WikiProject banner shell}} template instead of this project banner. See WP:PIQA for details.
WikiProject iconComputing: Software / Free and open-source software Mid‑importance
WikiProject iconThis article is within the scope of WikiProject Computing, a collaborative effort to improve the coverage of computers, computing, and information technology on Misplaced Pages. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.ComputingWikipedia:WikiProject ComputingTemplate:WikiProject ComputingComputing
MidThis article has been rated as Mid-importance on the project's importance scale.
Taskforce icon
This article is supported by WikiProject Software.
Taskforce icon
This article is supported by Free and open-source software (assessed as High-importance).
Please add the quality rating to the {{WikiProject banner shell}} template instead of this project banner. See WP:PIQA for details.
WikiProject iconComputer science Mid‑importance
WikiProject iconThis article is within the scope of WikiProject Computer science, a collaborative effort to improve the coverage of Computer science related articles on Misplaced Pages. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.Computer scienceWikipedia:WikiProject Computer scienceTemplate:WikiProject Computer scienceComputer science
MidThis article has been rated as Mid-importance on the project's importance scale.
Things you can help WikiProject Computer science with:

Here are some tasks awaiting attention:
Please add the quality rating to the {{WikiProject banner shell}} template instead of this project banner. See WP:PIQA for details.
WikiProject iconInternet Mid‑importance
WikiProject iconThis article is within the scope of WikiProject Internet, a collaborative effort to improve the coverage of the Internet on Misplaced Pages. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.InternetWikipedia:WikiProject InternetTemplate:WikiProject InternetInternet
MidThis article has been rated as Mid-importance on the project's importance scale.
Please add the quality rating to the {{WikiProject banner shell}} template instead of this project banner. See WP:PIQA for details.
WikiProject iconSoftware: Computing Mid‑importance
WikiProject iconThis article is within the scope of WikiProject Software, a collaborative effort to improve the coverage of software on Misplaced Pages. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.SoftwareWikipedia:WikiProject SoftwareTemplate:WikiProject Softwaresoftware
MidThis article has been rated as Mid-importance on the project's importance scale.
Taskforce icon
This article is supported by WikiProject Computing.
WikiProject iconSpoken Misplaced Pages
WikiProject iconThis article is within the scope of WikiProject Spoken Misplaced Pages, a collaborative effort to improve the coverage of articles that are spoken on Misplaced Pages. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.Spoken WikipediaWikipedia:WikiProject Spoken WikipediaTemplate:WikiProject Spoken WikipediaSpoken Misplaced Pages
A fact from this article was featured on Misplaced Pages's Main Page in the On this day section on June 8, 2007, June 8, 2008, June 8, 2009, June 8, 2010, June 8, 2012, June 8, 2015, and June 8, 2020.
The contents of the Visibility of PHP properties and methods page were merged into PHP on 08:41, July 28, 2010. For the contribution history and old versions of the redirected page, please see its history; for the discussion at that location, see its talk page.
The contents of the PHP Data Objects page were merged into PHP on July 15, 2014. For the contribution history and old versions of the redirected page, please see its history; for the discussion at that location, see its talk page.


Archives
Archive 1Archive 2Archive 3
Archive 4Archive 5Archive 6
Archive 7Archive 8


This page has archives. Sections older than 100 days may be automatically archived by Lowercase sigmabot III when more than 4 sections are present.

Using Type Declaration instead of Type Hints

As my change has been reverted it seems appropriate to discuss the matter.

The PHP documentations refers to them as Type declaration, see: https://www.php.net/manual/en/functions.arguments.php#functions.arguments.type-declaration, and the original RFC introducing scalar types, uses the word "declaration", see: https://wiki.php.net/rfc/scalar_type_hints_v5 Although it is true that the PHP 5 documentation referred to them as "hints", and that the "Object Typehint" RFC is named as such but for all intent and purposes it is a type declaration.

Moreover, the word "declaration" is used in other places correctly instead of "hint", see:

PHP 7 also included new language features. Most notably, it introduces return type declarations for functions which complement the existing parameter type declarations, and support for the scalar types (integer, float, string, and boolean) in parameter and return type declarations.

Unusually for a dynamically typed language, PHP supports type declarations on function parameters, which are enforced at runtime. This has been supported for classes and interfaces since PHP 5.0, for arrays since PHP 5.1, for "callables" since PHP 5.4, and scalar (integer, float, string and boolean) types since PHP 7.0. PHP 7.0 also has type declarations for function return types, expressed by placing the type name after the list of parameters, preceded by a colon. For example, the getAdder function from the earlier example could be annotated with types like so in PHP 7:

By default, scalar type declarations follow weak typing principles.

(Emphasis mine)

As I'm new to contributing to Misplaced Pages, I don't know what to do about the following comment from the revert commit

"typehint" is the commonly used term in the community.

As sure it is referred to that but it is not accurate, and my understanding is that Misplaced Pages articles should be accurate.

Can someone more experienced clarify?

Template error in infobox

I don't know where to put this as so many different systems are affected, but I assume many watchers of this article are familiar with code going wrong... currently the infobox has an error "Error: first parameter cannot be parsed as a date or time." The error comes from the code {{start date and age|{{wikidata|qualifier|P348|P577}}}}. The inner template returns "29 October 2020; 29 October 2020" because apparently it fetches the date both from the latest stable release and the release candidate version. That's not a valid date for the outer template, so we get this error. Is this a more general problem of the wikidata template? Is it expected to return multiple dates? If yes, can we avoid this problem by changing the Wikidata entry? If not, what else can we do to fix the error? We can put the date into the article manually, of course, but that's not a proper fix of the issue. Fetching the version ({{wikidata|property|reference|P348}}) works flawlessly. User:Romainluc last changed the Wikidata entry. --mfb (talk) 21:32, 14 November 2020 (UTC)

Try WP:VPTGhostInTheMachine 22:11, 14 November 2020 (UTC)
@Mfb: I added |single= to that line of the infobox as a temporary work-around until the underlying problem is identified and solved. I'm not sure what will happen if there is a release candidate that is dated AFTER the date of the last stable release - it might return the wrong date. davidwr/(talk)/(contribs) 23:47, 14 November 2020 (UTC)
Infoboxes should be using Module:WikidataIB. – Jonesey95 (talk) 01:08, 15 November 2020 (UTC)

It's December

It's past 26 November so shouldn't it be in the past tense? by kaiete (talk) 20:25, 2 December 2020 (UTC)

Syntax highlighting

The syntaxhighlight tag does not support modern PHP syntax:

$person = new class
{
    public $firstName = "John";
    public $lastName = "Smith";
    public function name(){
        return "$this->firstName $this->lastName";
    }
};

or

class MyClass
{
    public string $var1;
    public array $var2;
    function pr(string|int $array, array|null $subj): float|false
    {
    }
}
$myObj->pr(subj: , array: "John");

37.212.37.47 (talk) 17:10, 25 January 2021 (UTC)

Categories: