< Back
Switch-Php
Post
NAME Switch-Php
SYNOPSIS
Initializes the PHP Switcher.
SYNTAX
Switch-Php [-Name] <String> [-Force] [<CommonParameters>]
DESCRIPTION
PARAMETERS
-Name <String>
The symbolic name of the PHP installation to activate.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Force [<SwitchParameter>]
Force the creation of a PHP Switcher even if there are other PHP installations available in the current path.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Initialize-PhpSwitcher C:\\PHP
Add-PhpToSwitcher 5.6 C:\\PHP5.6
Add-PhpToSwitcher 7.2 C:\\PHP7.2
Switch-Php 5.6
RELATED LINKS
SYNOPSIS
Initializes the PHP Switcher.
SYNTAX
Switch-Php [-Name] <String> [-Force] [<CommonParameters>]
DESCRIPTION
PARAMETERS
-Name <String>
The symbolic name of the PHP installation to activate.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Force [<SwitchParameter>]
Force the creation of a PHP Switcher even if there are other PHP installations available in the current path.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Initialize-PhpSwitcher C:\\PHP
Add-PhpToSwitcher 5.6 C:\\PHP5.6
Add-PhpToSwitcher 7.2 C:\\PHP7.2
Switch-Php 5.6
RELATED LINKS